Skip to content

Commit 832912f

Browse files
Apply ruff rule RUF012
RUF012 Mutable class attributes should be annotated with `typing.ClassVar`
1 parent d2065d0 commit 832912f

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

ome_zarr/format.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import logging
44
from abc import ABC, abstractmethod
5-
from collections.abc import Iterator
5+
from collections.abc import Iterator, Mapping
66
from typing import Any
77

88
from zarr.storage import FsspecStore, LocalStore
@@ -134,7 +134,7 @@ class FormatV01(Format):
134134
Initial format. (2020)
135135
"""
136136

137-
REQUIRED_PLATE_WELL_KEYS: dict[str, type] = {"path": str}
137+
REQUIRED_PLATE_WELL_KEYS: Mapping[str, type] = {"path": str}
138138

139139
@property
140140
def version(self) -> str:
@@ -234,7 +234,11 @@ class FormatV04(FormatV03):
234234
introduce coordinate_transformations in multiscales (Nov 2021)
235235
"""
236236

237-
REQUIRED_PLATE_WELL_KEYS = {"path": str, "rowIndex": int, "columnIndex": int}
237+
REQUIRED_PLATE_WELL_KEYS: Mapping[str, type] = {
238+
"path": str,
239+
"rowIndex": int,
240+
"columnIndex": int,
241+
}
238242

239243
@property
240244
def version(self) -> str:

0 commit comments

Comments
 (0)