mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Switch usages of mypy_extensions.NoReturn over to typing.NoReturn. (#1942)
* Change mypy_extensions.NoReturn to typing.NoReturn everywhere.
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
# Stubs for lib2to3.pgen2.pgen (Python 3.6)
|
||||
|
||||
from typing import Any, Dict, IO, Iterable, Iterator, List, Optional, Text, Tuple
|
||||
from mypy_extensions import NoReturn
|
||||
from typing import (
|
||||
Any, Dict, IO, Iterable, Iterator, List, NoReturn, Optional, Text, Tuple
|
||||
)
|
||||
|
||||
from lib2to3.pgen2 import _Path, grammar
|
||||
from lib2to3.pgen2.tokenize import _TokenInfo
|
||||
|
||||
@@ -1,10 +1,12 @@
|
||||
# Stubs for poplib (Python 2 and 3)
|
||||
|
||||
from mypy_extensions import NoReturn
|
||||
import socket
|
||||
import ssl
|
||||
import sys
|
||||
from typing import Any, BinaryIO, Dict, List, Optional, overload, Pattern, Text, Tuple
|
||||
from typing import (
|
||||
Any, BinaryIO, Dict, List, NoReturn, Optional, overload, Pattern, Text,
|
||||
Tuple,
|
||||
)
|
||||
|
||||
_LongResp = Tuple[bytes, List[bytes], int]
|
||||
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
# Stubs for sunau (Python 2 and 3)
|
||||
|
||||
import sys
|
||||
from mypy_extensions import NoReturn
|
||||
from typing import Any, NamedTuple, Optional, Text, IO, Union, Tuple
|
||||
from typing import Any, NamedTuple, NoReturn, Optional, Text, IO, Union, Tuple
|
||||
|
||||
_File = Union[Text, IO[bytes]]
|
||||
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
# Stubs for wave (Python 2 and 3)
|
||||
|
||||
import sys
|
||||
from mypy_extensions import NoReturn
|
||||
from typing import Any, NamedTuple, Optional, Text, BinaryIO, Union, Tuple
|
||||
from typing import (
|
||||
Any, NamedTuple, NoReturn, Optional, Text, BinaryIO, Union, Tuple
|
||||
)
|
||||
|
||||
_File = Union[Text, BinaryIO]
|
||||
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
from typing import Any, List, Optional, Text, Union, IO
|
||||
from mypy_extensions import NoReturn
|
||||
from typing import Any, List, NoReturn, Optional, Text, Union, IO
|
||||
|
||||
import xml.sax
|
||||
from xml.sax.xmlreader import InputSource, Locator
|
||||
|
||||
Reference in New Issue
Block a user