mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Remove Python 3.7 branches (#11238)
This commit is contained in:
@@ -196,13 +196,9 @@ class Path(PurePath):
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
def readlink(self) -> Self: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def rename(self, target: str | PurePath) -> Self: ...
|
||||
def replace(self, target: str | PurePath) -> Self: ...
|
||||
else:
|
||||
def rename(self, target: str | PurePath) -> None: ...
|
||||
def replace(self, target: str | PurePath) -> None: ...
|
||||
|
||||
def rename(self, target: str | PurePath) -> Self: ...
|
||||
def replace(self, target: str | PurePath) -> Self: ...
|
||||
def resolve(self, strict: bool = False) -> Self: ...
|
||||
def rmdir(self) -> None: ...
|
||||
def symlink_to(self, target: StrOrBytesPath, target_is_directory: bool = False) -> None: ...
|
||||
@@ -210,11 +206,7 @@ class Path(PurePath):
|
||||
def hardlink_to(self, target: StrOrBytesPath) -> None: ...
|
||||
|
||||
def touch(self, mode: int = 0o666, exist_ok: bool = True) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def unlink(self, missing_ok: bool = False) -> None: ...
|
||||
else:
|
||||
def unlink(self) -> None: ...
|
||||
|
||||
def unlink(self, missing_ok: bool = False) -> None: ...
|
||||
@classmethod
|
||||
def home(cls) -> Self: ...
|
||||
def absolute(self) -> Self: ...
|
||||
@@ -229,7 +221,7 @@ class Path(PurePath):
|
||||
) -> int: ...
|
||||
else:
|
||||
def write_text(self, data: str, encoding: str | None = None, errors: str | None = None) -> int: ...
|
||||
if sys.version_info >= (3, 8) and sys.version_info < (3, 12):
|
||||
if sys.version_info < (3, 12):
|
||||
def link_to(self, target: StrOrBytesPath) -> None: ...
|
||||
if sys.version_info >= (3, 12):
|
||||
def walk(
|
||||
|
||||
Reference in New Issue
Block a user