MCPcopy Create free account
hub / github.com/PyTables/PyTables / __init__

Method __init__

tables/file.py:351–355  ·  view source on GitHub ↗
(self, nslots: int)

Source from the content-addressed store, hash-verified

349
350class _DictCache(dict):
351 def __init__(self, nslots: int) -> None:
352 if nslots < 1:
353 raise ValueError("Invalid number of slots: %d" % nslots)
354 self.nslots = nslots
355 super().__init__()
356
357 def __setitem__(self, key: Any, value: Any) -> None:
358 # Check if we are running out of space

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected