mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Add missing Dict imports.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Tuple
|
||||
from typing import Dict, Tuple
|
||||
|
||||
def escape(s: str, quote: bool = ...) -> str: ...
|
||||
def parse_header(s: str) -> Tuple[str, Dict[str, str]]: ...
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
import datetime as dt
|
||||
import sys
|
||||
from typing import Tuple, Optional, Any, Union, Mapping
|
||||
from typing import Dict, Tuple, Optional, Any, Union, Mapping
|
||||
from email.errors import MessageDefect
|
||||
if sys.version_info >= (3, 3):
|
||||
from email.policy import Policy
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for gc
|
||||
|
||||
from typing import Any, List, Tuple
|
||||
from typing import Any, Dict, List, Tuple
|
||||
|
||||
|
||||
DEBUG_COLLECTABLE = ... # type: int
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for http.cookies (Python 3.5)
|
||||
|
||||
from typing import Generic, List, Mapping, MutableMapping, Optional, TypeVar, Union
|
||||
from typing import Generic, Dict, List, Mapping, MutableMapping, Optional, TypeVar, Union
|
||||
|
||||
_DataType = Union[str, Mapping[str, Union[str, 'Morsel']]]
|
||||
_T = TypeVar('_T')
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
# Stubs for unittest
|
||||
|
||||
from typing import (
|
||||
Any, Callable, Iterable, Iterator, List, Optional, Pattern, Sequence,
|
||||
Any, Callable, Dict, Iterable, Iterator, List, Optional, Pattern, Sequence,
|
||||
TextIO, Tuple, Type, TypeVar, Union,
|
||||
overload,
|
||||
)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
# Stubs for urllib.request (Python 3.4)
|
||||
|
||||
from typing import (
|
||||
Any, Callable, List, IO, Mapping, Optional, Sequence, Tuple, TypeVar, Union,
|
||||
overload,
|
||||
Any, Callable, Dict, List, IO, Mapping, Optional, Sequence, Tuple, TypeVar,
|
||||
Union, overload,
|
||||
)
|
||||
from http.client import HTTPResponse, HTTPMessage
|
||||
from http.cookiejar import CookieJar
|
||||
|
||||
Reference in New Issue
Block a user