-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
bugmypy got something wrongmypy got something wrongtopic-stubtesttopic-type-aliasTypeAlias and other type alias issuesTypeAlias and other type alias issues
Description
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
.
Metadata
Metadata
Assignees
Labels
bugmypy got something wrongmypy got something wrongtopic-stubtesttopic-type-aliasTypeAlias and other type alias issuesTypeAlias and other type alias issues