Switch usages of mypy_extensions.NoReturn over to typing.NoReturn. (#1942)

* Change mypy_extensions.NoReturn to typing.NoReturn everywhere.
This commit is contained in:
rchen152
2018-03-05 12:42:29 -08:00
committed by Matthias Kramm
parent f91163d729
commit 38dc8f5a6a
18 changed files with 29 additions and 39 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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]]

View File

@@ -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]

View File

@@ -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