Improve warnings.catch_warnings (#8229)

This commit is contained in:
Alex Waygood
2022-07-04 16:05:21 +01:00
committed by GitHub
parent f135c6515d
commit 73974e974d
2 changed files with 20 additions and 22 deletions

View File

@@ -216,7 +216,6 @@ typing.type_check_only # typing decorator that is not available at runtime
unittest.mock.patch # It's a complicated overload and I haven't been able to figure out why stubtest doesn't like it
urllib.parse._DefragResultBase.__new__ # Generic NamedTuple is problematic in mypy, so regular tuple was used. See https://github.com/python/mypy/issues/685
urllib.request.HTTPPasswordMgrWithPriorAuth.__init__ # Args are passed as is to super, so super args are specified
warnings.catch_warnings.__init__ # Defining this ruins the __new__ overrides
weakref.CallableProxyType.__getattr__ # Should have all attributes of proxy
weakref.ProxyType.__getattr__ # Should have all attributes of proxy
weakref.ReferenceType.* # Alias for _weakref.ReferenceType, problems should be fixed there