diff --git a/immutables/map.py b/immutables/map.py index 46227357..c94efd83 100644 --- a/immutables/map.py +++ b/immutables/map.py @@ -61,6 +61,7 @@ class _Unhashable: class BitmapNode: + __slots__ = ("array", "bitmap", "mutid", "size") def __init__(self, size, bitmap, array, mutid): self.size = size @@ -419,6 +420,7 @@ def __iter__(self): class MapValues: + __slots__ = ("__count", "__root") def __init__(self, c, m): self.__count = c @@ -432,6 +434,7 @@ def __iter__(self): class MapItems: + __slots__ = ("__count", "__root") def __init__(self, c, m): self.__count = c @@ -445,7 +448,7 @@ def __iter__(self): class Map: - + __slots__ = ("__weakref__", "__count", "__hash", "__root") def __init__(self, *args, **kw): if not args: col = None