mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Big diff: Use new "|" union syntax (#5872)
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
from _typeshed.wsgi import ErrorStream, InputStream, WSGIApplication
|
||||
from typing import Any, Callable, Iterable, Iterator, NoReturn, Optional
|
||||
from typing import Any, Callable, Iterable, Iterator, NoReturn
|
||||
|
||||
class WSGIWarning(Warning): ...
|
||||
|
||||
@@ -36,8 +36,8 @@ class IteratorWrapper:
|
||||
original_iterator: Iterator[bytes]
|
||||
iterator: Iterator[bytes]
|
||||
closed: bool
|
||||
check_start_response: Optional[bool]
|
||||
def __init__(self, wsgi_iterator: Iterator[bytes], check_start_response: Optional[bool]) -> None: ...
|
||||
check_start_response: bool | None
|
||||
def __init__(self, wsgi_iterator: Iterator[bytes], check_start_response: bool | None) -> None: ...
|
||||
def __iter__(self) -> IteratorWrapper: ...
|
||||
def __next__(self) -> bytes: ...
|
||||
def close(self) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user