DimitriPapadopoulos / zarr-python

__init__ method from the base class not called PYL-W0231
Bug risk
Major
5 months ago — 4 years old
__init__ method from base class 'Store' is not called
 26
 27    _store: T_Store
 28
 29    def __init__(self, store: T_Store) -> None: 30        self._store = store
 31
 32    def _with_store(self, store: T_Store) -> Self:
__init__ method from base class 'MemoryStore' is not called
458    _name: str
459    path: str
460
461    def __init__(self, name: str | None = None, *, path: str = "", read_only: bool = False) -> None:462        # Skip MemoryStore.__init__ and call Store.__init__ directly
463        # because we manage _store_dict via the registry, not via a user-supplied
464        # MutableMapping.  If MemoryStore.__init__ ever adds logic beyond setting
__init__ method from base class 'NDBuffer' is not called
143        ndarray-like object that is convertible to a regular Numpy array.
144    """
145
146    def __init__(self, array: NDArrayLike) -> None:147        if cp is None:
148            raise ImportError(
149                "Cannot use zarr.buffer.gpu.NDBuffer without cupy. Please install cupy."
__init__ method from base class 'Buffer' is not called
 52        array-like object that must be 1-dim, contiguous, and byte dtype.
 53    """
 54
 55    def __init__(self, array_like: ArrayLike) -> None: 56        if cp is None:
 57            raise ImportError(
 58                "Cannot use zarr.buffer.gpu.Buffer without cupy. Please install cupy."