mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
@@ -167,7 +167,12 @@ class Path(PurePath):
|
||||
def read_text(self, encoding: str | None = ..., errors: str | None = ...) -> str: ...
|
||||
def samefile(self, other_path: str | bytes | int | Path) -> bool: ...
|
||||
def write_bytes(self, data: bytes) -> int: ...
|
||||
def write_text(self, data: str, encoding: str | None = ..., errors: str | None = ...) -> int: ...
|
||||
if sys.version_info >= (3, 10):
|
||||
def write_text(
|
||||
self, data: str, encoding: str | None = ..., errors: str | None = ..., newline: str | None = ...
|
||||
) -> int: ...
|
||||
else:
|
||||
def write_text(self, data: str, encoding: str | None = ..., errors: str | None = ...) -> int: ...
|
||||
if sys.version_info >= (3, 8):
|
||||
def link_to(self, target: StrPath | bytes) -> None: ...
|
||||
|
||||
|
||||
Reference in New Issue
Block a user