mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-23 19:41:51 +08:00
stdlib/@python2: clean imports (#5453)
This commit is contained in:
@@ -1,24 +1,8 @@
|
||||
import threading
|
||||
from _typeshed import StrPath
|
||||
from string import Template
|
||||
from time import struct_time
|
||||
from types import FrameType, TracebackType
|
||||
from typing import (
|
||||
IO,
|
||||
Any,
|
||||
Callable,
|
||||
Dict,
|
||||
Iterable,
|
||||
List,
|
||||
Mapping,
|
||||
MutableMapping,
|
||||
Optional,
|
||||
Sequence,
|
||||
Text,
|
||||
Tuple,
|
||||
Union,
|
||||
overload,
|
||||
)
|
||||
from typing import IO, Any, Callable, Dict, List, Mapping, MutableMapping, Optional, Sequence, Text, Tuple, Union, overload
|
||||
|
||||
_SysExcInfoType = Union[Tuple[type, BaseException, Optional[TracebackType]], Tuple[None, None, None]]
|
||||
_ExcInfoType = Union[None, bool, _SysExcInfoType]
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
from _typeshed import AnyPath, StrPath
|
||||
from _typeshed import StrPath
|
||||
from threading import Thread
|
||||
from typing import IO, Any, Callable, Dict, Optional, Union
|
||||
|
||||
from ConfigParser import RawConfigParser
|
||||
from typing import IO, Any, Dict, Optional, Union
|
||||
|
||||
_Path = StrPath
|
||||
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import datetime
|
||||
import ssl
|
||||
from _typeshed import StrPath
|
||||
from logging import FileHandler, Handler, LogRecord
|
||||
from Queue import Queue
|
||||
from socket import SocketKind, SocketType
|
||||
from typing import Any, Callable, ClassVar, Dict, List, Optional, Tuple, Union
|
||||
from typing import Any, ClassVar, Dict, List, Optional, Tuple, Union
|
||||
|
||||
DEFAULT_TCP_LOGGING_PORT: int
|
||||
DEFAULT_UDP_LOGGING_PORT: int
|
||||
|
||||
Reference in New Issue
Block a user