ftplib: update for py312 (#10282)

This commit is contained in:
Shantanu
2023-06-08 00:57:44 -07:00
committed by GitHub
parent 0045299d43
commit 36efbf89ed
3 changed files with 16 additions and 4 deletions

View File

@@ -118,7 +118,20 @@ class FTP:
def close(self) -> None: ...
class FTP_TLS(FTP):
if sys.version_info >= (3, 9):
if sys.version_info >= (3, 12):
def __init__(
self,
host: str = "",
user: str = "",
passwd: str = "",
acct: str = "",
*,
context: SSLContext | None = None,
timeout: float = ...,
source_address: tuple[str, int] | None = None,
encoding: str = "utf-8",
) -> None: ...
elif sys.version_info >= (3, 9):
def __init__(
self,
host: str = "",

View File

@@ -17,7 +17,6 @@ configparser.LegacyInterpolation.__init__
configparser.ParsingError.filename
enum.Enum.__init__
enum.Enum._generate_next_value_
ftplib.FTP.trust_server_pasv_ipv4_address
importlib.abc.Finder.find_module
ipaddress._BaseNetwork.broadcast_address
ipaddress._BaseNetwork.hostmask
@@ -88,6 +87,7 @@ dataclasses.KW_ONLY # white lies around defaults
enum.auto.__init__ # The stub for enum.auto is nothing like the implementation
enum.auto.value # The stub for enum.auto is nothing like the implementation
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._lru_cache_wrapper.cache_parameters # Cannot be detected statically
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
hmac.new # Stub is a white lie; see comments in the stub

View File

@@ -30,7 +30,6 @@ enum.Enum.__signature__
enum.EnumMeta.__call__
enum.EnumType.__call__
enum.property.member
ftplib.FTP_TLS.__init__
genericpath.__all__
genericpath.islink
gzip.GzipFile.filename
@@ -224,7 +223,6 @@ _csv.Reader
_csv.Writer
configparser.LegacyInterpolation.__init__
enum.Enum.__init__
ftplib.FTP.trust_server_pasv_ipv4_address
ipaddress._BaseNetwork.broadcast_address
ipaddress._BaseNetwork.hostmask
ipaddress.IPv4Interface.hostmask
@@ -293,6 +291,7 @@ dataclasses.KW_ONLY # white lies around defaults
enum.auto.__init__ # The stub for enum.auto is nothing like the implementation
enum.auto.value # The stub for enum.auto is nothing like the implementation
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._lru_cache_wrapper.cache_parameters # Cannot be detected statically
functools.cached_property.__set__ # Stub is a white lie; see comments in the stub
hmac.new # Stub is a white lie; see comments in the stub