contextlib2/dev/mypy.allowlist
Nick Coghlan 4fbce74d08 Fix typechecking with recent mypy releases
* sync with latest typeshed stub file (closes #54)
* publish `dev/mypy.allowlist` in sdist (closes #53)
* drop Python 3.7 support due to positional-only arg
  syntax in the updated stub file
2024-05-23 00:09:11 +10:00

10 lines
431 B
Text

# Deprecated APIs that never graduated to the standard library
contextlib2.ContextDecorator.refresh_cm
# stubcheck no longer complains about this one for some reason
# (but it does complain about the unused allowlist entry)
# contextlib2.ContextStack
# mypy seems to be confused by the GenericAlias compatibility hack
contextlib2.AbstractAsyncContextManager.__class_getitem__
contextlib2.AbstractContextManager.__class_getitem__