Files
typeshed/stdlib/asyncio
Jelle Zijlstra c4e3fd92cc Adjust types for asyncio.coroutines functions (#5517)
Noticed this in mypy-primer output in #5516 on this code: https://github.com/encode/starlette/blob/master/starlette/testclient.py#L74

It calls `iscoroutinefunction()` on an object that may be None, which got flagged as an error but is actually fine; it just returns False.

We could also potentially use TypeGuard here, especially for `iscoroutine` which is just an `isinstance` call.
2021-05-21 23:07:06 +02:00
..
2021-05-19 11:03:07 +02:00
2021-05-17 20:45:48 +02:00
2021-05-17 20:45:48 +02:00