mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-06 21:43:59 +08:00
[stdlib] Add default values part 2 (#14769)
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user