Skip to content

Commit aba094f

Browse files
msullivanilevkivskyi
authored andcommitted
Get NoReturn from typing_extensions instead typing (#7949)
1 parent 15280bf commit aba094f

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

mypy/main.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@
88
import time
99

1010
from typing import Any, Dict, IO, List, Optional, Sequence, Tuple, TextIO, Union
11-
try:
12-
from typing import NoReturn
13-
except ImportError: # Python 3.5.1
14-
NoReturn = None # type: ignore
15-
from typing_extensions import Final
11+
from typing_extensions import Final, NoReturn
1612

1713
from mypy import build
1814
from mypy import defaults

0 commit comments

Comments
 (0)