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
I actually had briefly thought about this myself and we have something similar for WSGI (PEP 3333) in wsgiref/types.pyi. A practical problem is that since those types do not exist at runtime, in implementations their import needs to be guarded with if TYPE_CHECKING:. Overall I'm in favor of this idea, but I'd be interested what other typeshed maintainers think.
Activity
srittau commentedon Sep 2, 2019
I actually had briefly thought about this myself and we have something similar for WSGI (PEP 3333) in
wsgiref/types.pyi. A practical problem is that since those types do not exist at runtime, in implementations their import needs to be guarded withif TYPE_CHECKING:. Overall I'm in favor of this idea, but I'd be interested what other typeshed maintainers think.JelleZijlstra commentedon Dec 22, 2021
Done in #6643.