contextlib2/dev/mypy.allowlist
Alyssa Coghlan 8fe4d73971
Fix typechecking with recent mypy releases (#59)
* 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:26:48 +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__