From 54d860ea6776f7f92fd92f565781be21b1ac745e Mon Sep 17 00:00:00 2001 From: Joar Grimstvedt Date: Tue, 15 Oct 2024 12:06:27 +0200 Subject: [PATCH] BUG: Ignores error reported by Mypy --- src/fmu/dataio/dataio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fmu/dataio/dataio.py b/src/fmu/dataio/dataio.py index 7212d70ac..29ed01475 100644 --- a/src/fmu/dataio/dataio.py +++ b/src/fmu/dataio/dataio.py @@ -89,7 +89,7 @@ def _validate_variable(key: str, value: type, legals: dict[str, str | type]) -> valid_type = eval(legal_key) if isinstance(legal_key, str) else legal_key try: - validcheck = valid_type.__args__ + validcheck = valid_type.__args__ # type: ignore[union-attr] except AttributeError: validcheck = valid_type