Add deprecation classes in importlib.metadata (#11118)

This commit is contained in:
Stephen Morton
2023-12-10 12:06:22 -08:00
committed by GitHub
parent be55326873
commit 695d67cd7b
4 changed files with 76 additions and 10 deletions

View File

@@ -153,6 +153,10 @@ typing.ParamSpec(Args|Kwargs).__origin__
importlib.abc.Traversable.joinpath
importlib.abc.Traversable.open
# Deprecation wrapper classes; their methods are just pass-through, so we can ignore them.
importlib.metadata.DeprecatedList.reverse
importlib.metadata.DeprecatedList.sort
# Super-special typing primitives
typing\.NamedTuple
typing\.Annotated

View File

@@ -106,6 +106,10 @@ unittest.case.TestCase.__init_subclass__
importlib.abc.Traversable.open
importlib.resources.abc.Traversable.open
# Deprecation wrapper classes; their methods are just pass-through, so we can ignore them.
importlib.metadata.DeprecatedList.reverse
importlib.metadata.DeprecatedList.sort
# Super-special typing primitives
typing\._SpecialForm.*
typing\.NamedTuple

View File

@@ -97,6 +97,9 @@ unittest.case.TestCase.__init_subclass__
importlib.abc.Traversable.open
importlib.resources.abc.Traversable.open
# Deprecation wrapper classes; their methods are just pass-through, so we can ignore them.
importlib.metadata.DeprecatedNonAbstract.__new__
# Super-special typing primitives
typing\._SpecialForm.*
typing\.NamedTuple