mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Add missing imports from typing (#933)
This commit is contained in:
committed by
Guido van Rossum
parent
f869a5d351
commit
22c0353498
@@ -1,6 +1,6 @@
|
||||
# Stubs for pathlib (Python 3.4)
|
||||
|
||||
from typing import Any, Generator, IO, Optional, Sequence, Tuple, Type, TypeVar, Union
|
||||
from typing import Any, Generator, IO, Optional, Sequence, Tuple, Type, TypeVar, Union, List
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import List, Union, Iterator, Tuple, Optional, Any, IO, NamedTuple
|
||||
from typing import List, Union, Iterator, Tuple, Optional, Any, IO, NamedTuple, Dict
|
||||
|
||||
from opcode import (hasconst, hasname, hasjrel, hasjabs, haslocal, hascompare,
|
||||
hasfree, hasnargs, cmp_op, opname, opmap, HAVE_ARGUMENT,
|
||||
|
||||
2
third_party/2and3/boto/s3/bucket.pyi
vendored
2
third_party/2and3/boto/s3/bucket.pyi
vendored
@@ -6,7 +6,7 @@ from .bucketlistresultset import BucketListResultSet
|
||||
from .connection import S3Connection
|
||||
from .key import Key
|
||||
|
||||
from typing import Any, Dict, Optional, Text, Type
|
||||
from typing import Any, Dict, Optional, Text, Type, List
|
||||
|
||||
class S3WebsiteEndpointTranslate:
|
||||
trans_region = ... # type: Dict[str, str]
|
||||
|
||||
2
third_party/2and3/sqlalchemy/sql/schema.pyi
vendored
2
third_party/2and3/sqlalchemy/sql/schema.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Any, AnyStr
|
||||
from typing import Any, AnyStr, Set
|
||||
|
||||
from .base import SchemaEventTarget, DialectKWArgs
|
||||
from .base import ColumnCollection
|
||||
|
||||
2
third_party/3/dateutil/parser.pyi
vendored
2
third_party/3/dateutil/parser.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import List, Tuple, Optional, Callable, Union, IO, Any
|
||||
from typing import List, Tuple, Optional, Callable, Union, IO, Any, Dict
|
||||
from datetime import datetime
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
2
third_party/3/dateutil/relativedelta.pyi
vendored
2
third_party/3/dateutil/relativedelta.pyi
vendored
@@ -1,4 +1,4 @@
|
||||
from typing import Optional, overload, Union
|
||||
from typing import Optional, overload, Union, List
|
||||
from datetime import date, datetime, timedelta
|
||||
|
||||
__all__ = ... # type: List[str]
|
||||
|
||||
2
third_party/3/dateutil/tz/tz.pyi
vendored
2
third_party/3/dateutil/tz/tz.pyi
vendored
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# NOTE: This dynamically typed stub was automatically generated by stubgen.
|
||||
|
||||
from typing import Any, Optional, Union, IO, Tuple
|
||||
from typing import Any, Optional, Union, IO, Tuple, List
|
||||
import datetime
|
||||
from ._common import tzname_in_python2 as tzname_in_python2, _tzinfo as _tzinfo
|
||||
from ._common import tzrangebase as tzrangebase, enfold as enfold
|
||||
|
||||
Reference in New Issue
Block a user