mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add missing List imports.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, Optional, Tuple, Sequence
|
||||
from typing import Any, Iterable, List, Optional, Tuple, Sequence
|
||||
import datetime
|
||||
|
||||
LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
from typing import AnyStr, Dict, Union
|
||||
from typing import AnyStr, Dict, List, Union
|
||||
from urllib import addinfourl
|
||||
|
||||
class URLError(IOError):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for distutils.spawn
|
||||
|
||||
from typing import Optional
|
||||
from typing import List, Optional
|
||||
|
||||
def spawn(cmd: List[str], search_path: bool = ...,
|
||||
verbose: bool = ..., dry_run: bool = ...) -> None: ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for distutils.text_file
|
||||
|
||||
from typing import IO, Optional, Tuple, Union
|
||||
from typing import IO, List, Optional, Tuple, Union
|
||||
|
||||
class TextFile:
|
||||
def __init__(self, filename: Optional[str] = ...,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for distutils.util
|
||||
|
||||
from typing import Any, Callable, Mapping, Optional, Tuple
|
||||
from typing import Any, Callable, List, Mapping, Optional, Tuple
|
||||
|
||||
|
||||
def get_platform() -> str: ...
|
||||
|
||||
@@ -5,7 +5,7 @@ from logging import Handler, FileHandler, LogRecord
|
||||
from socket import SocketType
|
||||
import ssl
|
||||
import sys
|
||||
from typing import Any, Callable, Optional, Tuple, Union, overload
|
||||
from typing import Any, Callable, List, Optional, Tuple, Union, overload
|
||||
if sys.version_info >= (3,):
|
||||
from queue import Queue
|
||||
else:
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for mimetypes
|
||||
|
||||
from typing import Dict, IO, Optional, Sequence, Text, Tuple
|
||||
from typing import Dict, IO, List, Optional, Sequence, Text, Tuple
|
||||
import sys
|
||||
|
||||
def guess_type(url: Text,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for pkgutil
|
||||
|
||||
from typing import Any, Callable, Generator, IO, Iterable, Optional, Tuple
|
||||
from typing import Any, Callable, Generator, IO, Iterable, List, Optional, Tuple
|
||||
import sys
|
||||
|
||||
if sys.version_info >= (3,):
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for traceback
|
||||
|
||||
from typing import Generator, IO, Iterator, Mapping, Optional, Tuple, Type
|
||||
from typing import Generator, IO, Iterator, List, Mapping, Optional, Tuple, Type
|
||||
from types import FrameType, TracebackType
|
||||
import sys
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for warnings
|
||||
|
||||
from typing import Any, Dict, NamedTuple, Optional, TextIO, Tuple, Type, Union
|
||||
from typing import Any, Dict, List, NamedTuple, Optional, TextIO, Tuple, Type, Union
|
||||
from types import ModuleType, TracebackType
|
||||
|
||||
def warn(message: Union[str, Warning], category: Optional[Type[Warning]] = ...,
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
from typing import List
|
||||
|
||||
import xml.sax
|
||||
from xml.sax.xmlreader import InputSource
|
||||
from xml.sax.handler import ContentHandler, ErrorHandler
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for zipfile
|
||||
|
||||
from typing import Callable, IO, Optional, Tuple, Type, Union
|
||||
from typing import Callable, IO, List, Optional, Tuple, Type, Union
|
||||
from types import TracebackType
|
||||
import sys
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Iterable, Optional, Tuple, Sequence
|
||||
from typing import Any, Iterable, List, Optional, Tuple, Sequence
|
||||
import datetime
|
||||
|
||||
LocaleType = Tuple[Optional[str], Optional[str]]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for email.charset (Python 3.4)
|
||||
|
||||
from typing import Optional, Iterator, Any
|
||||
from typing import List, Optional, Iterator, Any
|
||||
|
||||
class Charset:
|
||||
input_charset = ... # type: str
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Stubs for email.message (Python 3.4)
|
||||
|
||||
from typing import (
|
||||
Optional, Union, Tuple, TypeVar, Generator, Sequence, Iterator, Any
|
||||
List, Optional, Union, Tuple, TypeVar, Generator, Sequence, Iterator, Any
|
||||
)
|
||||
import sys
|
||||
from email.charset import Charset
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Stubs for email.policy (Python 3.4)
|
||||
|
||||
from abc import abstractmethod
|
||||
from typing import Any, Optional, Tuple, Union, Callable
|
||||
from typing import Any, List, Optional, Tuple, Union, Callable
|
||||
import sys
|
||||
from email.message import Message
|
||||
from email.errors import MessageDefect
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for http.cookies (Python 3.5)
|
||||
|
||||
from typing import Generic, Mapping, MutableMapping, Optional, TypeVar, Union
|
||||
from typing import Generic, List, Mapping, MutableMapping, Optional, TypeVar, Union
|
||||
|
||||
_DataType = Union[str, Mapping[str, Union[str, 'Morsel']]]
|
||||
_T = TypeVar('_T')
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from typing import List
|
||||
from multiprocessing import Process
|
||||
|
||||
def current_process() -> Process: ...
|
||||
|
||||
2
third_party/3.6/click/decorators.pyi
vendored
2
third_party/3.6/click/decorators.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, Callable, TypeVar, Union
|
||||
from typing import Any, Callable, List, TypeVar, Union
|
||||
|
||||
from click.core import Command, Group, Argument, Option, Parameter, Context
|
||||
from click.types import ParamType
|
||||
|
||||
2
third_party/3/pkg_resources.pyi
vendored
2
third_party/3/pkg_resources.pyi
vendored
@@ -2,7 +2,7 @@
|
||||
|
||||
from typing import (
|
||||
Any, Callable, Dict, IO, Iterable, Generator, Optional, Sequence, Tuple,
|
||||
Union,
|
||||
List, Union,
|
||||
TypeVar, overload,
|
||||
)
|
||||
import importlib.abc
|
||||
|
||||
Reference in New Issue
Block a user