mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-15 16:27:08 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -311,10 +311,10 @@ class FileInput(Iterator[AnyStr], Generic[AnyStr]):
|
||||
|
||||
if sys.version_info >= (3, 10):
|
||||
def hook_compressed(
|
||||
filename: StrOrBytesPath, mode: str, *, encoding: str | None = ..., errors: str | None = ...
|
||||
filename: StrOrBytesPath, mode: str, *, encoding: str | None = None, errors: str | None = None
|
||||
) -> IO[Any]: ...
|
||||
|
||||
else:
|
||||
def hook_compressed(filename: StrOrBytesPath, mode: str) -> IO[Any]: ...
|
||||
|
||||
def hook_encoded(encoding: str, errors: str | None = ...) -> Callable[[StrOrBytesPath, str], IO[Any]]: ...
|
||||
def hook_encoded(encoding: str, errors: str | None = None) -> Callable[[StrOrBytesPath, str], IO[Any]]: ...
|
||||
|
||||
Reference in New Issue
Block a user