mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -48,12 +48,7 @@ class ExecError(OSError): ...
|
||||
class ReadError(OSError): ...
|
||||
class RegistryError(Exception): ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = 0) -> None: ...
|
||||
|
||||
else:
|
||||
def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = 16384) -> None: ...
|
||||
|
||||
def copyfileobj(fsrc: SupportsRead[AnyStr], fdst: SupportsWrite[AnyStr], length: int = 0) -> None: ...
|
||||
def copyfile(src: StrOrBytesPath, dst: _StrOrBytesPathT, *, follow_symlinks: bool = True) -> _StrOrBytesPathT: ...
|
||||
def copymode(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = True) -> None: ...
|
||||
def copystat(src: StrOrBytesPath, dst: StrOrBytesPath, *, follow_symlinks: bool = True) -> None: ...
|
||||
@@ -66,27 +61,15 @@ def copy2(src: StrPath, dst: StrPath, *, follow_symlinks: bool = True) -> _PathR
|
||||
@overload
|
||||
def copy2(src: BytesPath, dst: BytesPath, *, follow_symlinks: bool = True) -> _PathReturn: ...
|
||||
def ignore_patterns(*patterns: StrPath) -> Callable[[Any, list[str]], set[str]]: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def copytree(
|
||||
src: StrPath,
|
||||
dst: StrPath,
|
||||
symlinks: bool = False,
|
||||
ignore: None | Callable[[str, list[str]], Iterable[str]] | Callable[[StrPath, list[str]], Iterable[str]] = None,
|
||||
copy_function: Callable[[str, str], object] = ...,
|
||||
ignore_dangling_symlinks: bool = False,
|
||||
dirs_exist_ok: bool = False,
|
||||
) -> _PathReturn: ...
|
||||
|
||||
else:
|
||||
def copytree(
|
||||
src: StrPath,
|
||||
dst: StrPath,
|
||||
symlinks: bool = False,
|
||||
ignore: None | Callable[[str, list[str]], Iterable[str]] | Callable[[StrPath, list[str]], Iterable[str]] = None,
|
||||
copy_function: Callable[[str, str], object] = ...,
|
||||
ignore_dangling_symlinks: bool = False,
|
||||
) -> _PathReturn: ...
|
||||
def copytree(
|
||||
src: StrPath,
|
||||
dst: StrPath,
|
||||
symlinks: bool = False,
|
||||
ignore: None | Callable[[str, list[str]], Iterable[str]] | Callable[[StrPath, list[str]], Iterable[str]] = None,
|
||||
copy_function: Callable[[str, str], object] = ...,
|
||||
ignore_dangling_symlinks: bool = False,
|
||||
dirs_exist_ok: bool = False,
|
||||
) -> _PathReturn: ...
|
||||
|
||||
_OnErrorCallback: TypeAlias = Callable[[Callable[..., Any], str, Any], object]
|
||||
_OnExcCallback: TypeAlias = Callable[[Callable[..., Any], str, Exception], object]
|
||||
@@ -161,16 +144,10 @@ def chown(path: FileDescriptorOrPath, user: None = None, *, group: str | int) ->
|
||||
def chown(path: FileDescriptorOrPath, user: None, group: str | int) -> None: ...
|
||||
@overload
|
||||
def chown(path: FileDescriptorOrPath, user: str | int, group: str | int) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
@overload
|
||||
def which(cmd: _StrPathT, mode: int = 1, path: StrPath | None = None) -> str | _StrPathT | None: ...
|
||||
@overload
|
||||
def which(cmd: bytes, mode: int = 1, path: StrPath | None = None) -> bytes | None: ...
|
||||
|
||||
else:
|
||||
def which(cmd: _StrPathT, mode: int = 1, path: StrPath | None = None) -> str | _StrPathT | None: ...
|
||||
|
||||
@overload
|
||||
def which(cmd: _StrPathT, mode: int = 1, path: StrPath | None = None) -> str | _StrPathT | None: ...
|
||||
@overload
|
||||
def which(cmd: bytes, mode: int = 1, path: StrPath | None = None) -> bytes | None: ...
|
||||
def make_archive(
|
||||
base_name: str,
|
||||
format: str,
|
||||
@@ -192,15 +169,9 @@ def register_archive_format(
|
||||
name: str, function: Callable[[str, str], object], extra_args: None = None, description: str = ""
|
||||
) -> None: ...
|
||||
def unregister_archive_format(name: str) -> None: ...
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
def unpack_archive(
|
||||
filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None, *, filter: _TarfileFilter | None = None
|
||||
) -> None: ...
|
||||
|
||||
else:
|
||||
def unpack_archive(filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None) -> None: ...
|
||||
|
||||
def unpack_archive(
|
||||
filename: StrPath, extract_dir: StrPath | None = None, format: str | None = None, *, filter: _TarfileFilter | None = None
|
||||
) -> None: ...
|
||||
@overload
|
||||
def register_unpack_format(
|
||||
name: str,
|
||||
|
||||
Reference in New Issue
Block a user