Skip to content

Commit fe0b30f

Browse files
committed
update authors, update pixi, run ruff
1 parent c27a5bb commit fe0b30f

File tree

3 files changed

+771
-820
lines changed

3 files changed

+771
-820
lines changed

docs/examples/attrs_demo.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
# This example demonstrates a tentative `attrs`-based object model.
44

55
from pathlib import Path
6-
from typing import Any, List, Literal, NamedTuple, Optional
6+
from typing import List, Literal, Optional
77

88
import numpy as np
9-
from attr import asdict, define, field, fields_dict
9+
from attr import asdict, define, field
1010
from cattr import Converter
1111
from flopy.discretization import StructuredGrid
1212
from numpy.typing import NDArray
@@ -40,9 +40,7 @@ class Format:
4040
digits: int
4141
format: Literal["exponential", "fixed", "general", "scientific"]
4242

43-
periods: List[List[tuple]] = field(
44-
metadata={"block": "perioddata"}
45-
)
43+
periods: List[List[tuple]] = field(metadata={"block": "perioddata"})
4644
budget_file: Optional[Path] = field(
4745
default=None, metadata={"block": "options"}
4846
)
@@ -129,7 +127,7 @@ def _check_dims(self, attribute, value):
129127

130128
oc = GwfOc(
131129
budget_file="some/file/path.cbc",
132-
periods=[[("print", "budget", "steps", 1, 3, 5)]]
130+
periods=[[("print", "budget", "steps", 1, 3, 5)]],
133131
)
134132
assert isinstance(oc.budget_file, str) # TODO path
135133

0 commit comments

Comments
 (0)