Skip to content

Commit 5a48f50

Browse files
committed
beartype
1 parent cf757ad commit 5a48f50

File tree

5 files changed

+16
-46
lines changed

5 files changed

+16
-46
lines changed

flopy4/__init__.py

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

33
import numpy as np
44
from attr import Attribute, fields_dict
5+
from beartype.claw import beartype_this_package
56
from numpy.typing import ArrayLike, NDArray
67
from xarray import Dataset, DataTree
78

9+
beartype_this_package()
10+
811

912
def _parse_dim_names(shape: str) -> tuple[str, ...]:
1013
return tuple(

flopy4/mf6/io/parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
from collections.abc import Iterable
12
from os import linesep
2-
from typing import Iterable
33

44
from lark import Lark
55

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ classifiers = [
3535
requires-python = ">=3.11"
3636
dependencies = [
3737
"attrs", # todo: bounds?
38+
"beartype",
3839
"cattrs", # todo: bounds?
3940
"flopy>=3.7.0",
4041
"Jinja2>=3.0",
@@ -60,7 +61,6 @@ test = [
6061
"jupyter",
6162
"jupytext",
6263
"modflow-devtools",
63-
"mypy",
6464
"pooch>=1.8",
6565
"pytest!=8.1.0",
6666
"pytest-dotenv",
File renamed without changes.

uv.lock

Lines changed: 11 additions & 44 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)