You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From python -m mypy.stubtest --custom-typeshed-dir . wsgiref:
error: wsgiref.types.WSGIApplication is not a recognised type alias
Stub: at line 14
def (builtins.dict[builtins.str, Any], wsgiref.types.StartResponse) -> typing.Iterable[builtins.bytes]
Runtime: in file /Users/jelle/py/cpython/Lib/collections/abc.py
collections.abc.Callable[[dict[str, typing.Any], wsgiref.types.StartResponse], collections.abc.Iterable[bytes]]
Once again, the stub and implementation are exactly the same. It's odd that the stub infers a def (...) while the runtime infers a collections.abc.Callable.
The text was updated successfully, but these errors were encountered:
From
python -m mypy.stubtest --custom-typeshed-dir . wsgiref
:Once again, the stub and implementation are exactly the same. It's odd that the stub infers a
def (...)
while the runtime infers acollections.abc.Callable
.The text was updated successfully, but these errors were encountered: