aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTaneli Hukkinen <hukkinj1@users.noreply.github.com>2020-05-08 16:38:24 +0200
committerYury Selivanov <yury@edgedb.com>2020-05-13 12:21:27 -0700
commit0841f90dc323f3cc8f075d8531683e7308371a24 (patch)
tree7e763b6f0cad84234911056aa0c96ab774aa16f2
parente0a07ab5bf65d416967f624172644d7846616569 (diff)
downloadimmutables-0841f90dc323f3cc8f075d8531683e7308371a24.tar.gz
immutables-0841f90dc323f3cc8f075d8531683e7308371a24.zip
Improve type annotation of Map.__init__
-rw-r--r--immutables/_map.pyi7
1 files changed, 5 insertions, 2 deletions
diff --git a/immutables/_map.pyi b/immutables/_map.pyi
index bea69f3..ff5f895 100644
--- a/immutables/_map.pyi
+++ b/immutables/_map.pyi
@@ -41,9 +41,12 @@ class MapItems(Generic[K, V]):
class Map(Mapping[K, V]):
+ @overload
+ def __init__(self, **kw: V) -> None: ...
+ @overload
def __init__(
- self, col: Union[Mapping[K, V], Iterable[Tuple[K, V]]] = ..., **kw: V
- ): ...
+ self, col: Union[Mapping[K, V], Iterable[Tuple[K, V]]], **kw: V
+ ) -> None: ...
def __reduce__(self) -> Tuple[Type[Map], Tuple[dict]]: ...
def __len__(self) -> int: ...
def __eq__(self, other: Any) -> bool: ...