Skip to content

Commit

Permalink
BUG: Ignores error reported by Mypy (#849)
Browse files Browse the repository at this point in the history
  • Loading branch information
joargr authored Oct 15, 2024
1 parent f97153d commit ef31c48
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 ef31c48

Please sign in to comment.