mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 05:22:23 +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: ...
|
||||
|
||||
Reference in New Issue
Block a user