Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion immutables/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ class _Unhashable:


class BitmapNode:
__slots__ = ("array", "bitmap", "mutid", "size")

def __init__(self, size, bitmap, array, mutid):
self.size = size
Expand Down Expand Up @@ -419,6 +420,7 @@ def __iter__(self):


class MapValues:
__slots__ = ("__count", "__root")

def __init__(self, c, m):
self.__count = c
Expand All @@ -432,6 +434,7 @@ def __iter__(self):


class MapItems:
__slots__ = ("__count", "__root")

def __init__(self, c, m):
self.__count = c
Expand All @@ -445,7 +448,7 @@ def __iter__(self):


class Map:

__slots__ = ("__weakref__", "__count", "__hash", "__root")
def __init__(self, *args, **kw):
if not args:
col = None
Expand Down