(self, nbytes: int)
| 700 | """ |
| 701 | |
| 702 | def __init__(self, nbytes: int) -> None: |
| 703 | if not isinstance(nbytes, int): |
| 704 | raise TypeError(f"Expected integer for nbytes but got {type(nbytes)}") |
| 705 | if nbytes < _size_obj: |
| 706 | raise ValueError( |
| 707 | f"Expected a value larger than {_size_obj} integer but got {nbytes}." |
| 708 | ) |
| 709 | self._nbytes = nbytes - _size_obj |
| 710 | |
| 711 | def __sizeof__(self) -> int: |
| 712 | return self._nbytes |