From 1eadd1e3577d8b2b7ccb261bc6e57b0286f594be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Sun, 4 Dec 2022 17:59:42 +0100 Subject: [PATCH] TYP: reduce runtime type flexibility --- yt/data_objects/static_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt/data_objects/static_output.py b/yt/data_objects/static_output.py index b5ef23d34c6..1561842b0ce 100644 --- a/yt/data_objects/static_output.py +++ b/yt/data_objects/static_output.py @@ -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