Skip to content

Commit 8fbee06

Browse files
committed
only beartype if developing, update uv lockfile
1 parent 29ce60a commit 8fbee06

File tree

2 files changed

+163
-150
lines changed

2 files changed

+163
-150
lines changed

flopy4/__init__.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
import json
2+
from importlib.metadata import Distribution
3+
14
from beartype.claw import beartype_this_package
25

3-
beartype_this_package()
6+
_PKG_URL = Distribution.from_name("flopy4").read_text("direct_url.json")
7+
_EDITABLE = json.loads(_PKG_URL).get("dir_info", {}).get("editable", False)
8+
if _EDITABLE:
9+
beartype_this_package()

0 commit comments

Comments
 (0)