stdlib/@python2: clean imports (#5453)

This commit is contained in:
Akuli
2021-05-15 02:08:37 +03:00
committed by GitHub
parent 5ec4f06263
commit 15b0959cf8
144 changed files with 77 additions and 294 deletions

View File

@@ -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]

View File

@@ -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

View File

@@ -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