Removed a bunch of unused import symbols detected by pyright. (#5060)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric Traut
2021-02-23 11:46:46 -07:00
committed by GitHub
parent 507ca60ff8
commit c7c025ae08
9 changed files with 10 additions and 21 deletions

View File

@@ -1,4 +1,3 @@
import sys
from io import TextIOWrapper
from typing import Any, Optional, Tuple

View File

@@ -1,5 +1,5 @@
from io import BytesIO
from typing import Mapping, Optional, Pattern, Sequence, Tuple, Union
from typing import Any, Mapping, Optional, Pattern, Sequence, Tuple, Union
from waitress.adjustments import Adjustments
from waitress.receiver import ChunkedReceiver, FixedStreamReceiver
@@ -38,6 +38,6 @@ class HTTPRequestParser:
def split_uri(uri: bytes) -> Tuple[str, str, bytes, str, str]: ...
def get_header_lines(header: bytes) -> Sequence[bytes]: ...
first_line_re: Pattern
first_line_re: Pattern[Any]
def crack_first_line(line: str) -> Tuple[bytes, bytes, bytes]: ...