Skip to content

Commit

Permalink
TYP: reduce runtime type flexibility
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Dec 4, 2022
1 parent 21a2338 commit 1eadd1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yt/data_objects/static_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ def _get_field_info_helper(

if isinstance(field, str):
ftype, fname = "unknown", field
elif is_sequence(field) and len(field) == 2:
elif isinstance(field, tuple) and len(field) == 2:
ftype, fname = field
elif isinstance(field, DerivedField):
ftype, fname = field.name
Expand Down

0 comments on commit 1eadd1e

Please sign in to comment.