Removed unused import symbols from stdlib stubs and fixed a few other errors detected by pyright. I did a similar pass several months ago; these were introduced since then. (#4803)

Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
Eric TrautandEric Traut authored and GitHub committed 2020-12-06 18:44:18 +01:00
1 parent 3d8a29705e
commit c4d8507ff7
19 files changed
+26 -20

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
import sys
from types import TracebackType
from typing import IO, Any, Callable, ContextManager, Generic, Iterable, Iterator, Optional, Type, TypeVar, overload
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar, overload
if sys.version_info >= (3, 5):
from typing import AsyncContextManager, AsyncIterator
+1 -1
View File
@@ -1,5 +1,5 @@
import sys
from typing import IO, Any, Dict as DictT, Mapping, MutableMapping, Optional, Text, Type, TypeVar, Union, overload
from typing import IO, Any, Dict as DictT, Mapping, MutableMapping, Optional, Text, Type, Union
if sys.version_info >= (3,):
from enum import Enum
+1 -1
View File
@@ -1,5 +1,5 @@
import sys
from typing import Any, BinaryIO, Iterable, List, Optional, Sequence, Text, TextIO, Tuple, TypeVar, Union, overload
from typing import Any, BinaryIO, Iterable, List, Optional, Text, TextIO, Tuple, TypeVar, Union, overload
from typing_extensions import Literal
# ----- Constants -----