mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
stdlib/@python2: clean imports (#5453)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
from collections import deque
|
||||
from typing import Any, Deque, Generic, Optional, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
import types
|
||||
from socket import SocketType
|
||||
from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Text, Tuple, Type, Union
|
||||
from typing import Any, BinaryIO, Callable, ClassVar, List, Optional, Text, Tuple, Union
|
||||
|
||||
class BaseServer:
|
||||
address_family: int
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import collections
|
||||
from typing import Any, Iterable, List, MutableSequence, Optional, Sequence, Text, Tuple, TypeVar, Union, overload
|
||||
|
||||
_UST = TypeVar("_UST", bound=UserString)
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import sys
|
||||
from _typeshed import SupportsLessThan
|
||||
from typing import Callable, MutableSequence, Optional, Sequence, TypeVar
|
||||
from typing import MutableSequence, Optional, Sequence, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Iterable, Iterator, List, Optional, Protocol, Sequence, Text, Type, Union
|
||||
|
||||
QUOTE_ALL: int
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import IO, Any, BinaryIO, NamedTuple, Optional, Tuple, Union, overload
|
||||
from typing import IO, Any, BinaryIO, Optional, Tuple, Union, overload
|
||||
|
||||
_chtype = Union[str, bytes, int]
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from types import FrameType, TracebackType
|
||||
from typing import Any, Callable, Iterable, List, Mapping, Optional, Text, Type, TypeVar, Union
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Dict, Iterable, Optional, Tuple, TypeVar, overload
|
||||
from typing import Any, Callable, Dict, Iterable, Tuple, TypeVar, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_S = TypeVar("_S")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Callable, Iterable, List, Optional, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Generic, List, Tuple
|
||||
from typing import Any, Tuple
|
||||
|
||||
def coverage(a: str) -> Any: ...
|
||||
def logreader(a: str) -> LogReaderType: ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from mmap import mmap
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, AnyStr, BinaryIO, Iterable, Iterator, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union
|
||||
from typing import IO, Any, BinaryIO, Iterable, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union
|
||||
|
||||
_bytearray_like = Union[bytearray, mmap]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Dict, Generic, List, Tuple
|
||||
from typing import Any, Tuple
|
||||
|
||||
def encode_basestring_ascii(*args, **kwargs) -> str: ...
|
||||
def scanstring(a, b, *args, **kwargs) -> Tuple[Any, ...]: ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Tuple
|
||||
|
||||
# Actually Tuple[(int,) * 625]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import sys
|
||||
from threading import Thread
|
||||
from types import TracebackType
|
||||
from typing import Any, Callable, Dict, NoReturn, Optional, Tuple, Type
|
||||
|
||||
|
||||
@@ -14,8 +14,7 @@
|
||||
|
||||
import array
|
||||
import mmap
|
||||
import sys
|
||||
from typing import AbstractSet, Any, Container, Iterable, Protocol, Text, Tuple, TypeVar, Union
|
||||
from typing import Any, Container, Iterable, Protocol, Text, Tuple, TypeVar, Union
|
||||
from typing_extensions import Literal, final
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
import sys
|
||||
from typing import Optional, Protocol
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Dict, List, Optional, Tuple, Type, Union, overload
|
||||
|
||||
default_action: str
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Callable, Generic, List, Optional, TypeVar, overload
|
||||
|
||||
_C = TypeVar("_C", bound=Callable[..., Any])
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Generic, Iterable, Iterator, MutableSet, Optional, TypeVar, Union
|
||||
|
||||
_S = TypeVar("_S")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import Any, Optional, Tuple, Type, Union
|
||||
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, List, NamedTuple, Optional, Text, Tuple, Type, Union, overload
|
||||
from typing import IO, Any, List, NamedTuple, Optional, Text, Tuple, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
class Error(Exception): ...
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
import sys
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import (
|
||||
IO,
|
||||
Any,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Generic, Iterable, List, MutableSequence, Text, Tuple, TypeVar, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import asyncore
|
||||
import socket
|
||||
import sys
|
||||
from abc import abstractmethod
|
||||
from typing import Optional, Sequence, Tuple, Union
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import IO, Optional, Union
|
||||
|
||||
_encodable = Union[bytes, unicode]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import Text, Union
|
||||
from typing import Text
|
||||
|
||||
# Python 2 accepts unicode ascii pretty much everywhere.
|
||||
_Bytes = Text
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
import io
|
||||
import sys
|
||||
from _typeshed import AnyPath, ReadableBuffer, WriteableBuffer
|
||||
from typing import IO, Any, Iterable, List, Optional, TextIO, TypeVar, Union, overload
|
||||
from typing_extensions import Literal, SupportsIndex
|
||||
from typing import IO, Any, Iterable, List, Optional, TypeVar, Union
|
||||
from typing_extensions import SupportsIndex
|
||||
|
||||
_PathOrFile = Union[AnyPath, IO[bytes]]
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from types import CodeType
|
||||
from typing import Any, Callable, Dict, Optional, Tuple, TypeVar, Union
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from abc import ABCMeta
|
||||
from types import TracebackType
|
||||
from typing import IO, Iterable, Iterator, List, Optional, Union, overload
|
||||
|
||||
# This class isn't actually abstract, but you can't instantiate it
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import datetime
|
||||
import sys
|
||||
from time import struct_time
|
||||
from typing import Any, Iterable, List, Optional, Sequence, Tuple, Union
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import SupportsComplex, SupportsFloat, Tuple, Union
|
||||
|
||||
e: float
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from types import CodeType
|
||||
from typing import Any, Callable, Mapping, Optional
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
import types
|
||||
from abc import abstractmethod
|
||||
from typing import (
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar, overload
|
||||
from typing import IO, Any, Callable, ContextManager, Iterable, Iterator, Optional, Type, TypeVar
|
||||
from typing_extensions import Protocol
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -1,4 +1 @@
|
||||
import sys
|
||||
from typing import List, Optional, Union
|
||||
|
||||
def crypt(word: str, salt: str) -> str: ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _csv import (
|
||||
QUOTE_ALL as QUOTE_ALL,
|
||||
QUOTE_MINIMAL as QUOTE_MINIMAL,
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from time import struct_time
|
||||
from typing import AnyStr, ClassVar, NamedTuple, Optional, SupportsAbs, Tuple, Type, TypeVar, Union, overload
|
||||
from typing import AnyStr, ClassVar, Optional, SupportsAbs, Tuple, Type, TypeVar, Union, overload
|
||||
|
||||
_S = TypeVar("_S")
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import numbers
|
||||
import sys
|
||||
from types import TracebackType
|
||||
from typing import Any, Container, Dict, List, NamedTuple, Optional, Sequence, Text, Tuple, Type, TypeVar, Union, overload
|
||||
from typing import Any, Container, Dict, List, NamedTuple, Optional, Sequence, Text, Tuple, Type, TypeVar, Union
|
||||
|
||||
_Decimal = Union[Decimal, int]
|
||||
_DecimalNew = Union[Decimal, float, Text, Tuple[int, Sequence[int], int]]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import (
|
||||
Any,
|
||||
AnyStr,
|
||||
|
||||
@@ -14,7 +14,7 @@ from opcode import (
|
||||
opmap as opmap,
|
||||
opname as opname,
|
||||
)
|
||||
from typing import IO, Any, Callable, Dict, Iterator, List, NamedTuple, Optional, Tuple, Union
|
||||
from typing import Any, Callable, Dict, Iterator, List, Tuple, Union
|
||||
|
||||
# Strictly this should not have to include Callable, but mypy doesn't use FunctionType
|
||||
# for functions (python/mypy#3171)
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
import types
|
||||
import unittest
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Optional, Tuple, Type, Union
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import IO, Any, AnyStr
|
||||
from typing import IO, AnyStr
|
||||
|
||||
def message_from_string(s: AnyStr, *args, **kwargs): ...
|
||||
def message_from_bytes(s: str, *args, **kwargs): ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Optional
|
||||
|
||||
def version() -> str: ...
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import Any, AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Text, Tuple, Union
|
||||
from typing import AnyStr, Callable, Dict, Generic, Iterable, List, Optional, Sequence, Text, Tuple, Union
|
||||
|
||||
DEFAULT_IGNORES: List[str]
|
||||
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from typing import IO, Any, AnyStr, Callable, Generic, Iterable, Iterator, Optional, Union
|
||||
from typing import IO, Any, AnyStr, Callable, Generic, Iterable, Iterator, Union
|
||||
|
||||
def input(
|
||||
files: Union[AnyPath, Iterable[AnyPath], None] = ...,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from decimal import Decimal
|
||||
from numbers import Integral, Rational, Real
|
||||
from typing import Optional, Tuple, Type, TypeVar, Union, overload
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import sys
|
||||
from _typeshed import SupportsRead, SupportsReadline
|
||||
from socket import socket
|
||||
from ssl import SSLContext
|
||||
from types import TracebackType
|
||||
from typing import Any, BinaryIO, Callable, Dict, Iterable, Iterator, List, Optional, Text, TextIO, Tuple, Type, TypeVar, Union
|
||||
from typing import Any, BinaryIO, Callable, List, Optional, Text, Tuple, Type, TypeVar, Union
|
||||
from typing_extensions import Literal
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from typing import Any, Callable, Dict, Generic, Iterable, Optional, Sequence, Tuple, Type, TypeVar, overload
|
||||
from typing import Any, Callable, Dict, Generic, Iterable, Sequence, Tuple, Type, TypeVar, overload
|
||||
|
||||
_AnyCallable = Callable[..., Any]
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import os
|
||||
import sys
|
||||
from _typeshed import AnyPath, BytesPath, StrPath, SupportsLessThanT
|
||||
from typing import List, Sequence, Tuple, Union, overload
|
||||
from typing_extensions import Literal
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from _typeshed import SupportsLessThan
|
||||
from typing import Any, Callable, Iterable, List, Optional, Protocol, TypeVar
|
||||
from typing import Callable, Iterable, List, Optional, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from types import ModuleType
|
||||
from typing import Any, AnyStr, Callable, Optional, Union, overload
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import mimetools
|
||||
import ssl
|
||||
from typing import Any, Dict, Optional, Protocol
|
||||
|
||||
class HTTPMessage(mimetools.Message):
|
||||
|
||||
@@ -1,9 +1,7 @@
|
||||
import subprocess
|
||||
import sys
|
||||
import time
|
||||
from socket import socket as _socket
|
||||
from ssl import SSLContext, SSLSocket
|
||||
from types import TracebackType
|
||||
from ssl import SSLSocket
|
||||
from typing import IO, Any, Callable, Dict, List, Optional, Pattern, Text, Tuple, Type, Union
|
||||
from typing_extensions import Literal
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import os
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Callable, List, Optional, Protocol, Text, Union, overload
|
||||
|
||||
class _ReadableBinary(Protocol):
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Container, Generic, Iterable, Iterator, Optional, SupportsInt, Tuple, TypeVar, overload
|
||||
|
||||
# Undocumented length constants
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Generic, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, Union, overload
|
||||
from typing import Any, Callable, Generic, Iterable, Iterator, Optional, Sequence, Tuple, TypeVar, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_S = TypeVar("_S")
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Sequence, Text
|
||||
|
||||
def iskeyword(s: Text) -> bool: ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Dict, Text
|
||||
|
||||
ENDMARKER: int
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from lib2to3.pgen2.grammar import Grammar
|
||||
from typing import Any, Callable, Dict, Iterator, List, Optional, Text, Tuple, TypeVar, Union
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Dict, List, Optional, Text
|
||||
|
||||
_ModuleGlobals = Dict[str, Any]
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
import sys
|
||||
|
||||
# workaround for mypy#2010
|
||||
from __builtin__ import str as _str
|
||||
from decimal import Decimal
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath, BytesPath, StrPath
|
||||
from _typeshed import AnyPath
|
||||
from genericpath import (
|
||||
commonprefix as commonprefix,
|
||||
exists as exists,
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import email.message
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from types import TracebackType
|
||||
from typing import (
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import Iterable, Optional, SupportsFloat, SupportsInt, Tuple, overload
|
||||
from typing import Iterable, SupportsFloat, SupportsInt, Tuple
|
||||
|
||||
e: float
|
||||
pi: float
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import sys
|
||||
from typing import IO, Dict, List, Optional, Sequence, Text, Tuple, Union
|
||||
from typing import IO, Dict, List, Optional, Sequence, Text, Tuple
|
||||
|
||||
def guess_type(url: Text, strict: bool = ...) -> Tuple[Optional[str], Optional[str]]: ...
|
||||
def guess_all_extensions(type: str, strict: bool = ...) -> List[str]: ...
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import ReadableBuffer
|
||||
from typing import AnyStr, ContextManager, Generic, Iterable, Iterator, Optional, Sequence, Sized, Union, overload
|
||||
from typing import AnyStr, Generic, Optional, Sequence, Union
|
||||
|
||||
ACCESS_DEFAULT: int
|
||||
ACCESS_READ: int
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from types import CodeType
|
||||
from typing import IO, Any, Container, Dict, Iterable, Iterator, List, Optional, Sequence, Tuple
|
||||
from typing import IO, Any, Container, Dict, Iterable, List, Optional, Sequence, Tuple
|
||||
|
||||
LOAD_CONST: int # undocumented
|
||||
IMPORT_NAME: int # undocumented
|
||||
|
||||
@@ -1,13 +1,8 @@
|
||||
import array
|
||||
import itertools
|
||||
import sys
|
||||
import threading
|
||||
import weakref
|
||||
from multiprocessing import TimeoutError, cpu_count
|
||||
from multiprocessing.dummy.connection import Pipe
|
||||
from Queue import Queue
|
||||
from threading import BoundedSemaphore, Event, Lock, RLock, Semaphore
|
||||
from typing import Any, List, Optional, Type
|
||||
from typing import Any, List, Optional
|
||||
|
||||
class DummyProcess(threading.Thread):
|
||||
_children: weakref.WeakKeyDictionary[Any, Any]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from Queue import Queue
|
||||
from typing import Any, List, Optional, Tuple, Type
|
||||
from typing import Any, List, Optional, Tuple
|
||||
|
||||
families: List[None]
|
||||
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import datetime
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
from typing import IO, Any, Dict, Iterable, List, NamedTuple, Optional, Tuple, TypeVar, Union
|
||||
|
||||
_SelfT = TypeVar("_SelfT", bound=_NNTPBase)
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
# Note: these stubs are incomplete. The more complex type
|
||||
# signatures are currently omitted.
|
||||
|
||||
import sys
|
||||
from abc import ABCMeta, abstractmethod
|
||||
from typing import Any, Optional, SupportsFloat, overload
|
||||
from typing import Any, Optional, SupportsFloat
|
||||
|
||||
class Number(metaclass=ABCMeta):
|
||||
@abstractmethod
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import Dict, List, Optional, Sequence
|
||||
from typing import Dict, List, Sequence
|
||||
|
||||
cmp_op: Sequence[str]
|
||||
hasconst: List[int]
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import (
|
||||
Any,
|
||||
Container,
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import IO, Any, AnyStr, Callable, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, Type, Union, overload
|
||||
|
||||
# See https://groups.google.com/forum/#!topic/python-ideas/gA1gdj3RZ5g
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath, FileDescriptorLike
|
||||
from builtins import OSError
|
||||
from io import TextIOWrapper as _TextIOWrapper
|
||||
from posix import listdir as listdir, stat_result as stat_result # TODO: use this, see https://github.com/python/mypy/issues/3078
|
||||
from typing import (
|
||||
IO,
|
||||
@@ -18,7 +17,6 @@ from typing import (
|
||||
NoReturn,
|
||||
Optional,
|
||||
Sequence,
|
||||
Set,
|
||||
Text,
|
||||
Tuple,
|
||||
TypeVar,
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
import signal
|
||||
import sys
|
||||
from bdb import Bdb
|
||||
from cmd import Cmd
|
||||
from inspect import _SourceObjectType
|
||||
from types import CodeType, FrameType, TracebackType
|
||||
from typing import IO, Any, Callable, ClassVar, Dict, Iterable, List, Mapping, Optional, Sequence, Tuple, TypeVar, Union
|
||||
from types import FrameType, TracebackType
|
||||
from typing import IO, Any, Callable, ClassVar, Dict, Iterable, List, Mapping, Optional, Tuple, TypeVar, Union
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, Mapping, Optional, Tuple, Type, Union
|
||||
from typing import IO, Any, Callable, Iterator, Optional, Tuple, Type, Union
|
||||
|
||||
HIGHEST_PROTOCOL: int
|
||||
bytes_types: Tuple[Type[Any], ...] # undocumented
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import IO, Any, Callable, Iterator, List, MutableMapping, Optional, Text, Tuple, Type, Union
|
||||
|
||||
_Reader = Callable[[IO[bytes]], Any]
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import sys
|
||||
from _typeshed import SupportsRead
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, List, NamedTuple, Optional, Tuple, Union
|
||||
from typing import IO, Any, Callable, Iterable, Iterator, List, Optional, Tuple, Union
|
||||
|
||||
Loader = Any
|
||||
MetaPathFinder = Any
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import IO, Any, Dict as DictT, Mapping, MutableMapping, Optional, Text, Type, Union
|
||||
from typing import IO, Any, Dict as DictT, Mapping, Text, Union
|
||||
|
||||
_Path = Union[str, Text]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, List, Optional, TextIO, Tuple, TypeVar, Union
|
||||
from typing import Any, Iterable, Optional, TextIO, Tuple, TypeVar, Union
|
||||
|
||||
_T = TypeVar("_T")
|
||||
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Dict, List, Optional, Pattern, Text, Tuple, overload
|
||||
from typing import Any, BinaryIO, List, Optional, Pattern, Text, Tuple, overload
|
||||
|
||||
_LongResp = Tuple[bytes, List[bytes], int]
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import IO, Any, Dict, Optional, Tuple
|
||||
|
||||
def pformat(object: object, indent: int = ..., width: int = ..., depth: Optional[int] = ...) -> str: ...
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from cProfile import Profile as _cProfile
|
||||
from profile import Profile
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Callable, Iterable, Tuple, Union
|
||||
|
||||
_Reader = Callable[[int], bytes]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import AnyStr, List, Optional, Text, Type, Union
|
||||
from typing import List, Optional, Text, Type, Union
|
||||
|
||||
_EitherStr = Union[bytes, Text]
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Dict, List, Optional, Sequence, Union
|
||||
|
||||
class Class:
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _typeshed import SupportsWrite
|
||||
from types import MethodType, ModuleType, TracebackType
|
||||
from typing import (
|
||||
|
||||
@@ -1,6 +1,3 @@
|
||||
import sys
|
||||
from typing import Dict
|
||||
|
||||
XML_ERROR_ABORTED: str
|
||||
XML_ERROR_ASYNC_ENTITY: str
|
||||
XML_ERROR_ATTRIBUTE_EXTERNAL_ENTITY_REF: str
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import _random
|
||||
from typing import AbstractSet, Any, Callable, Iterator, List, MutableSequence, Protocol, Sequence, TypeVar, Union, overload
|
||||
from typing import Any, Callable, Iterator, List, MutableSequence, Protocol, Sequence, TypeVar, overload
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_T_co = TypeVar("_T_co", covariant=True)
|
||||
|
||||
@@ -1,19 +1,4 @@
|
||||
from typing import (
|
||||
Any,
|
||||
AnyStr,
|
||||
Callable,
|
||||
Dict,
|
||||
Generic,
|
||||
Iterator,
|
||||
List,
|
||||
Match,
|
||||
Optional,
|
||||
Pattern,
|
||||
Sequence,
|
||||
Tuple,
|
||||
Union,
|
||||
overload,
|
||||
)
|
||||
from typing import Any, AnyStr, Callable, Iterator, List, Match, Optional, Pattern, Tuple, Union, overload
|
||||
|
||||
# ----- re variables and constants -----
|
||||
DEBUG: int
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from _typeshed import AnyPath
|
||||
from typing import Callable, Optional, Sequence
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import sys
|
||||
from typing import Any, Dict, Optional, Union
|
||||
|
||||
_Text = Union[str, unicode]
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import sys
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Optional, Text, Tuple
|
||||
from typing import Any, Callable, Dict, List, NamedTuple, Text, Tuple
|
||||
|
||||
class Event(NamedTuple):
|
||||
time: float
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import sys
|
||||
from _typeshed import FileDescriptorLike
|
||||
from types import TracebackType
|
||||
from typing import Any, Iterable, List, Optional, Tuple, Type
|
||||
from typing import Any, Iterable, List, Optional, Tuple
|
||||
|
||||
if sys.platform != "win32":
|
||||
PIPE_BUF: int
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, Hashable, Iterable, Iterator, MutableMapping, Optional, TypeVar, Union
|
||||
from typing import Any, Hashable, Iterable, Iterator, MutableMapping, Optional, TypeVar, Union
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_Setlike = Union[BaseSet[_T], Iterable[_T]]
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user