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

Method __init__

tables/atom.py:650–658  ·  view source on GitHub ↗
(
        self, itemsize: int, shape: Shape = (), dflt: str | bytes = _defvalue
    )

Source from the content-addressed store, hash-verified

648 return self.dtype.base.itemsize
649
650 def __init__(
651 self, itemsize: int, shape: Shape = (), dflt: str | bytes = _defvalue
652 ) -> None:
653 if not hasattr(itemsize, "__int__") or int(itemsize) < 0:
654 raise ValueError(
655 f"invalid item size for kind ``string``: {itemsize!r}; "
656 f"it must be a positive integer"
657 )
658 Atom.__init__(self, f"S{itemsize}", shape, dflt)
659
660
661class BoolAtom(Atom): # type: ignore[misc]

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected