Skip to content

Commit

Permalink
BUG: Ignores error reported by Mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
joargr committed Oct 15, 2024
1 parent f97153d commit 54d860e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fmu/dataio/dataio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 54d860e

Please sign in to comment.