Big diff: Use new "|" union syntax (#5872)

This commit is contained in:
Akuli
2021-08-08 12:05:21 +03:00
committed by GitHub
parent b9adb7a874
commit ee487304d7
578 changed files with 8080 additions and 8966 deletions

View File

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