From f4a2ec0fb3038f360308d5184f4dae3047af9621 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 31 Jul 2024 15:59:07 -0700 Subject: [PATCH] fix ruff problem from newer ruff version --- src/numpydantic/vendor/nptyping/base_meta_classes.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/numpydantic/vendor/nptyping/base_meta_classes.py b/src/numpydantic/vendor/nptyping/base_meta_classes.py index d943e20..337e629 100644 --- a/src/numpydantic/vendor/nptyping/base_meta_classes.py +++ b/src/numpydantic/vendor/nptyping/base_meta_classes.py @@ -228,9 +228,7 @@ class ContainerMeta( return (norm_shape_expression,) def __subclasscheck__(cls, subclass: Any) -> bool: - type_match = type(subclass) == type( # pylint: disable=unidiomatic-typecheck - cls - ) + type_match = type(subclass) is type(cls) return type_match and ( subclass.__args__ == cls.__args__ or not cls._parameterized )