[stdlib] Add default values part 2 (#14769)

This commit is contained in:
Semyon Moroz
2026-01-11 19:08:32 +00:00
committed by GitHub
parent a4eeb5c05b
commit 3593e35df4
12 changed files with 142 additions and 117 deletions
+7 -7
View File
@@ -363,8 +363,8 @@ else:
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
line_buffering: bool = ...,
write_through: bool = ...,
line_buffering: bool = False,
write_through: bool = False,
*,
pwd: bytes | None = None,
) -> TextIOWrapper: ...
@@ -381,11 +381,11 @@ else:
def exists(self) -> bool: ...
def read_text(
self,
encoding: str | None = ...,
errors: str | None = ...,
newline: str | None = ...,
line_buffering: bool = ...,
write_through: bool = ...,
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
line_buffering: bool = False,
write_through: bool = False,
) -> str: ...
def read_bytes(self) -> bytes: ...
if sys.version_info >= (3, 10):
+7 -7
View File
@@ -52,8 +52,8 @@ if sys.version_info >= (3, 12):
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
line_buffering: bool = ...,
write_through: bool = ...,
line_buffering: bool = False,
write_through: bool = False,
*,
pwd: bytes | None = None,
) -> TextIOWrapper: ...
@@ -65,11 +65,11 @@ if sys.version_info >= (3, 12):
def exists(self) -> bool: ...
def read_text(
self,
encoding: str | None = ...,
errors: str | None = ...,
newline: str | None = ...,
line_buffering: bool = ...,
write_through: bool = ...,
encoding: str | None = None,
errors: str | None = None,
newline: str | None = None,
line_buffering: bool = False,
write_through: bool = False,
) -> str: ...
def read_bytes(self) -> bytes: ...
def joinpath(self, *other: StrPath) -> Path: ...