Skip to content

Commit ee01ed5

Browse files
committed
appease mypy, drop official release from dfns.toml (only nightly build has the dfns asset for now)
1 parent c73d3e7 commit ee01ed5

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

modflow_devtools/dfn/schema.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,10 @@ def get_fields(dfn: Dfn) -> OMD:
754754

755755
def _has_grid_dependent_shapes(dfn: Dfn) -> bool:
756756
"""Return True if any field uses a semicolon grid-type-dependent shape."""
757-
for block in dfn.get("blocks", {}).values():
757+
blocks = dfn.get("blocks", {})
758+
if not blocks:
759+
return False
760+
for block in blocks.values():
758761
for field in block.values():
759762
if ";" in str(field.get("shape") or ""):
760763
return True

modflow_devtools/dfns/dfns.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
# - Windows: %APPDATA%/modflow-devtools/dfns.toml
55

66
releases = [
7-
"MODFLOW-ORG/modflow6@latest",
7+
# "MODFLOW-ORG/modflow6@latest",
88
"MODFLOW-ORG/modflow6-nightly-build@latest"
99
]

0 commit comments

Comments
 (0)