mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
stdlib: add argument default values (#9501)
This commit is contained in:
@@ -9,7 +9,7 @@ class FileWrapper:
|
||||
filelike: IO[bytes]
|
||||
blksize: int
|
||||
close: Callable[[], None] # only exists if filelike.close exists
|
||||
def __init__(self, filelike: IO[bytes], blksize: int = ...) -> None: ...
|
||||
def __init__(self, filelike: IO[bytes], blksize: int = 8192) -> None: ...
|
||||
if sys.version_info < (3, 11):
|
||||
def __getitem__(self, key: Any) -> bytes: ...
|
||||
|
||||
@@ -18,7 +18,7 @@ class FileWrapper:
|
||||
|
||||
def guess_scheme(environ: WSGIEnvironment) -> str: ...
|
||||
def application_uri(environ: WSGIEnvironment) -> str: ...
|
||||
def request_uri(environ: WSGIEnvironment, include_query: bool = ...) -> str: ...
|
||||
def request_uri(environ: WSGIEnvironment, include_query: bool = True) -> str: ...
|
||||
def shift_path_info(environ: WSGIEnvironment) -> str | None: ...
|
||||
def setup_testing_defaults(environ: WSGIEnvironment) -> None: ...
|
||||
def is_hop_by_hop(header_name: str) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user