Skip to content

Commit 888e95a

Browse files
committed
[mypyc] Get Type from typing_extensions
1 parent ba9b3eb commit 888e95a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

mypyc/ops.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,18 @@
1313
from abc import abstractmethod
1414
from typing import (
1515
List, Sequence, Dict, Generic, TypeVar, Optional, Any, NamedTuple, Tuple, Callable,
16-
Union, Iterable, Type, Set
16+
Union, Iterable, Set
1717
)
18+
from typing_extensions import Final, Type
1819
from collections import OrderedDict
1920

20-
2121
from mypy.nodes import ARG_NAMED_OPT, ARG_OPT, ARG_POS, Block, FuncDef, SymbolNode
2222

2323
from mypy_extensions import trait
2424

2525
from mypyc.namegen import NameGenerator
2626

2727
MYPY = False
28-
if MYPY:
29-
from typing_extensions import Final
3028

3129
T = TypeVar('T')
3230

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