mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 04:34:28 +08:00
wsgiref: fix arg name, make close an instance variable (#4123)
Co-authored-by: hauntsaninja <>
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
import sys
|
||||
from typing import IO, Any, Optional
|
||||
from typing import IO, Any, Callable, Optional
|
||||
|
||||
from .types import WSGIEnvironment
|
||||
|
||||
class FileWrapper:
|
||||
filelike: IO[bytes]
|
||||
blksize: int
|
||||
def __init__(self, filelike: IO[bytes], bklsize: int = ...) -> None: ...
|
||||
close: Callable[[], None] # only exists if filelike.close exists
|
||||
def __init__(self, filelike: IO[bytes], blksize: int = ...) -> None: ...
|
||||
def __getitem__(self, key: Any) -> bytes: ...
|
||||
def __iter__(self) -> FileWrapper: ...
|
||||
if sys.version_info < (3,):
|
||||
def next(self) -> bytes: ...
|
||||
else:
|
||||
def __next__(self) -> bytes: ...
|
||||
def close(self) -> None: ... # only exists if filelike.close exists
|
||||
|
||||
def guess_scheme(environ: WSGIEnvironment) -> str: ...
|
||||
def application_uri(environ: WSGIEnvironment) -> str: ...
|
||||
|
||||
@@ -526,9 +526,7 @@ webbrowser.UnixBrowser.raise_opts
|
||||
webbrowser.UnixBrowser.remote_action
|
||||
webbrowser.UnixBrowser.remote_action_newtab
|
||||
webbrowser.UnixBrowser.remote_action_newwin
|
||||
wsgiref.types
|
||||
wsgiref.util.FileWrapper.__init__
|
||||
wsgiref.util.FileWrapper.close
|
||||
wsgiref.types # Doesn't exist, see comments in file
|
||||
xml.etree.ElementPath._SelectorContext.parent_map
|
||||
xml.etree.ElementTree.Element.__bool__
|
||||
xml.etree.ElementTree.Element.copy
|
||||
|
||||
Reference in New Issue
Block a user