From 5b488ff9b3bbc863345b1131c79503b87dee6b19 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Tue, 15 Oct 2024 13:04:35 -0400 Subject: [PATCH] ruff --- flopy/mf6/utils/codegen/dfn.py | 2 +- flopy/mf6/utils/codegen/shim.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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",