mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-02 01:27:31 +08:00
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:
1 parent
3d8a29705e
commit
c4d8507ff7
19 files changed
+26
-20
No files matched your search
@@ -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,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,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 -----
|
||||
|
||||
Reference in new issue
Block a user