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

This commit is contained in:
Akuli authored and GitHub committed 2021-08-08 11:05:21 +02:00
1 parent b9adb7a874
commit ee487304d7
578 files changed
+8080 -8966

No files matched your search

+3 -3
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: ...