diff options
author | Taneli Hukkinen <hukkinj1@users.noreply.github.com> | 2020-05-13 22:16:04 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-13 13:16:04 -0700 |
commit | f2c49336def4e11025e0533467a4d7d889bf2b4d (patch) | |
tree | a57260ef4988c369aaf7f64b8ac0640eaab22f97 | |
parent | 0841f90dc323f3cc8f075d8531683e7308371a24 (diff) | |
download | immutables-f2c49336def4e11025e0533467a4d7d889bf2b4d.tar.gz immutables-f2c49336def4e11025e0533467a4d7d889bf2b4d.zip |
Import Literal type from typing_extensions if python version<3.8 (#33)
-rw-r--r-- | immutables/_map.pyi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/immutables/_map.pyi b/immutables/_map.pyi index ff5f895..b8a6de3 100644 --- a/immutables/_map.pyi +++ b/immutables/_map.pyi @@ -3,7 +3,6 @@ from typing import Generic from typing import Hashable from typing import Iterable from typing import Iterator -from typing import Literal from typing import Mapping from typing import MutableMapping from typing import NoReturn @@ -78,7 +77,7 @@ class MapMutation(MutableMapping[K, V]): def __init__(self, count: int, root: BitmapNode) -> None: ... def set(self, key: K, val: V) -> None: ... def __enter__(self: S) -> S: ... - def __exit__(self, *exc: Any) -> Literal[False]: ... + def __exit__(self, *exc: Any): ... def __iter__(self) -> NoReturn: ... def __delitem__(self, key: K) -> None: ... def __setitem__(self, key: K, val: V) -> None: ... |