If tornado is imported before nest_asyncio, make tornado aware of the pure-Python asyncio Future.
()
| 273 | |
| 274 | |
| 275 | def _patch_tornado(): |
| 276 | """If tornado is imported before nest_asyncio, |
| 277 | make tornado aware of the pure-Python asyncio Future.""" |
| 278 | if "tornado" in sys.modules: |
| 279 | import tornado.concurrent as tc # type: ignore |
| 280 | tc.Future = asyncio.Future |
| 281 | if asyncio.Future not in tc.FUTURES: |
| 282 | tc.FUTURES += (asyncio.Future,) |
no outgoing calls
no test coverage detected
searching dependent graphs…