Skip to content

Commit aba094f

Browse files
msullivanilevkivskyi
authored andcommitted
Get NoReturn from typing_extensions instead typing (python#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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy