Skip to content

Commit 584ef79

Browse files
Enable and apply ruff fule RUF009
RUF009 Do not perform function call `cast` in dataclass defaults
1 parent 19365e2 commit 584ef79

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ extend-select = [
177177
ignore = [
178178
"RUF003",
179179
"RUF005",
180-
"RUF009",
181180
"RUF012",
182181
"RUF015",
183182
]

src/zarr/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ class ArrayV2Metadata(ArrayMetadata):
310310
filters: list[dict[str, JSON]] | None = None
311311
dimension_separator: Literal[".", "/"] = "."
312312
compressor: dict[str, JSON] | None = None
313-
attributes: dict[str, JSON] = cast(dict[str, JSON], field(default_factory=dict))
313+
attributes: dict[str, JSON] = field(default_factory=dict)
314314
zarr_format: Literal[2] = field(init=False, default=2)
315315

316316
def __init__(

0 commit comments

Comments
 (0)