diff --git a/flopy/mf6/utils/codegen/dfn.py b/flopy/mf6/utils/codegen/dfn.py index 7708c0588..667f31290 100644 --- a/flopy/mf6/utils/codegen/dfn.py +++ b/flopy/mf6/utils/codegen/dfn.py @@ -34,7 +34,7 @@ def _try_parse_bool(value): Try to parse a boolean from a string as represented in a DFN file, otherwise return the value unaltered. """ - + if isinstance(value, str): value = value.lower() if value in ["true", "false"]: diff --git a/flopy/mf6/utils/codegen/shim.py b/flopy/mf6/utils/codegen/shim.py index 07fc49cd5..4ca953552 100644 --- a/flopy/mf6/utils/codegen/shim.py +++ b/flopy/mf6/utils/codegen/shim.py @@ -492,7 +492,7 @@ def _super() -> Optional[str]: args = [ ctx["parent"] if ctx.get("meta", dict()).get("ref", None) - else ctx['parent'], + else ctx["parent"], f"'{ctx['name'].r}'", "filename", "pname",