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
{{ message }}
Repository navigation
no error when subscripting AbstractContextManager when targeting python 3.8 #16097
Activity
KotlinIsland commentedon Sep 13, 2023
StubOnlyBasedecorator for types that don't actually extend things, but do in the stubs (likeGeneric) typing#956The easiest way to handle this situation would be to special case it.
Avasam commentedon May 18, 2026
mypy 1.17 has dropped support for Python 3.8:
and mypy 2.0 has dropped support for Python 3.9:
--python-version 3.9#21243So this specific case of subscripting
contextlib.AbstractContextManagershould be valid on all supported Python versions