wsgiref: fix arg name, make close an instance variable (#4123)

Co-authored-by: hauntsaninja <>
This commit is contained in:
Shantanu
2020-05-27 21:06:11 -07:00
committed by GitHub
parent 0041206765
commit 22fd5e916a
2 changed files with 4 additions and 6 deletions

View File

@@ -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: ...

View File

@@ -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