mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Fix stubs that assumed reexport without as
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# Stubs for StringIO (Python 2)
|
||||
|
||||
from typing import Any, IO, AnyStr, Iterator, Iterable, Generic
|
||||
from typing import Any, IO, AnyStr, Iterator, Iterable, Generic, List
|
||||
|
||||
class StringIO(IO[AnyStr], Generic[AnyStr]):
|
||||
closed = ... # type: bool
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# TODO(MichalPokorny): better types
|
||||
|
||||
from typing import Any, IO, Optional, Union
|
||||
from typing import Any, IO, List, Optional, Union
|
||||
|
||||
def bindtextdomain(domain: str, localedir: str = None) -> str: ...
|
||||
def bind_textdomain_codeset(domain: str, codeset: str = None) -> str: ...
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# Stubs for urlparse (Python 2)
|
||||
|
||||
from typing import List, NamedTuple, Tuple
|
||||
from typing import Dict, List, NamedTuple, Tuple
|
||||
|
||||
uses_relative = [] # type: List[str]
|
||||
uses_netloc = [] # type: List[str]
|
||||
|
||||
Reference in New Issue
Block a user