mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Upgrade black version (#7089)
This commit is contained in:
@@ -41,11 +41,13 @@ class PurePath(PathLike[str]):
|
||||
def is_reserved(self) -> bool: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def is_relative_to(self, *other: StrPath) -> bool: ...
|
||||
|
||||
def match(self, path_pattern: str) -> bool: ...
|
||||
def relative_to(self: Self, *other: StrPath) -> Self: ...
|
||||
def with_name(self: Self, name: str) -> Self: ...
|
||||
if sys.version_info >= (3, 9):
|
||||
def with_stem(self: Self, stem: str) -> Self: ...
|
||||
|
||||
def with_suffix(self: Self, suffix: str) -> Self: ...
|
||||
def joinpath(self: Self, *other: StrPath) -> Self: ...
|
||||
@property
|
||||
@@ -72,6 +74,7 @@ class Path(PurePath):
|
||||
else:
|
||||
def stat(self) -> stat_result: ...
|
||||
def chmod(self, mode: int) -> None: ...
|
||||
|
||||
def exists(self) -> bool: ...
|
||||
def glob(self: Self, pattern: str) -> Generator[Self, None, None]: ...
|
||||
def group(self) -> str: ...
|
||||
@@ -79,6 +82,7 @@ class Path(PurePath):
|
||||
def is_file(self) -> bool: ...
|
||||
if sys.version_info >= (3, 7):
|
||||
def is_mount(self) -> bool: ...
|
||||
|
||||
def is_symlink(self) -> bool: ...
|
||||
def is_socket(self) -> bool: ...
|
||||
def is_fifo(self) -> bool: ...
|
||||
@@ -152,17 +156,20 @@ class Path(PurePath):
|
||||
else:
|
||||
def rename(self, target: str | PurePath) -> None: ...
|
||||
def replace(self, target: str | PurePath) -> None: ...
|
||||
|
||||
def resolve(self: Self, strict: bool = ...) -> Self: ...
|
||||
def rglob(self: Self, pattern: str) -> Generator[Self, None, None]: ...
|
||||
def rmdir(self) -> None: ...
|
||||
def symlink_to(self, target: str | Path, target_is_directory: bool = ...) -> None: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def hardlink_to(self, target: str | Path) -> None: ...
|
||||
|
||||
def touch(self, mode: int = ..., exist_ok: bool = ...) -> None: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def unlink(self, missing_ok: bool = ...) -> None: ...
|
||||
else:
|
||||
def unlink(self) -> None: ...
|
||||
|
||||
@classmethod
|
||||
def home(cls: type[Self]) -> Self: ...
|
||||
def absolute(self: Self) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user