Skip to content

Commit f2c4933

Browse files
authored
Import Literal type from typing_extensions if python version<3.8 (#33)
1 parent 0841f90 commit f2c4933

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

immutables/_map.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ from typing import Generic
33
from typing import Hashable
44
from typing import Iterable
55
from typing import Iterator
6-
from typing import Literal
76
from typing import Mapping
87
from typing import MutableMapping
98
from typing import NoReturn
@@ -78,7 +77,7 @@ class MapMutation(MutableMapping[K, V]):
7877
def __init__(self, count: int, root: BitmapNode) -> None: ...
7978
def set(self, key: K, val: V) -> None: ...
8079
def __enter__(self: S) -> S: ...
81-
def __exit__(self, *exc: Any) -> Literal[False]: ...
80+
def __exit__(self, *exc: Any): ...
8281
def __iter__(self) -> NoReturn: ...
8382
def __delitem__(self, key: K) -> None: ...
8483
def __setitem__(self, key: K, val: V) -> None: ...

0 commit comments

Comments
 (0)