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

Function _invalid_itemsize_error

tables/atom.py:77–84  ·  view source on GitHub ↗
(
    kind: str, itemsize: int, itemsizes: list[int]
)

Source from the content-addressed store, hash-verified

75
76
77def _invalid_itemsize_error(
78 kind: str, itemsize: int, itemsizes: list[int]
79) -> ValueError:
80 isizes = sorted(itemsizes)
81 return ValueError(
82 "invalid item size for kind ``%s``: %r; "
83 "it must be one of ``%r``" % (kind, itemsize, isizes)
84 )
85
86
87def _normalize_shape(shape: Shape | np.integer | int) -> Shape:

Callers 3

from_kindMethod · 0.85
__init__Function · 0.85
__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected