Add __set__ to functools.cached_property (#9762)

This commit is contained in:
Thomas M Kehrenberg
2023-02-20 13:36:45 +01:00
committed by GitHub
parent 7b975dc144
commit 40d853cbe2
6 changed files with 34 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ builtins.property.__set_name__ # Doesn't actually exist
contextlib.AbstractAsyncContextManager.__class_getitem__
contextlib.AbstractContextManager.__class_getitem__
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
functools.cached_property.__set__ # Stub is a while lie; see comments in the stub
gettext.install
gettext.translation
hmac.new # Stub is a white lie; see comments in the stub

View File

@@ -20,6 +20,7 @@ enum.auto.__init__
enum.auto.value
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
ftplib.FTP.trust_server_pasv_ipv4_address
functools.cached_property.__set__ # Stub is a while lie; see comments in the stub
ipaddress.IPv4Interface.hostmask
ipaddress.IPv6Interface.hostmask
ipaddress._BaseNetwork.broadcast_address

View File

@@ -46,6 +46,7 @@ dummy_threading.Thread.native_id
dummy_threading.local.__new__
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
ftplib.FTP.trust_server_pasv_ipv4_address # Dangerous to use, intentionally undocumented, intentionally missing from typeshed. #6154
functools.cached_property.__set__ # Stub is a while lie; see comments in the stub
gettext.install # codeset default value is ['unspecified'] so can't be specified
gettext.translation # codeset default value is ['unspecified'] so can't be specified
hmac.new # Stub is a white lie; see comments in the stub

View File

@@ -40,6 +40,7 @@ distutils.core.extension_keywords
distutils.core.gen_usage
distutils.core.setup_keywords
fractions.Fraction.__new__ # overload is too complicated for stubtest to resolve
functools.cached_property.__set__ # Stub is a while lie; see comments in the stub
gettext.install
gettext.translation
hmac.new # Stub is a white lie; see comments in the stub