fix ruff problem from newer ruff version

This commit is contained in:
sneakers-the-rat 2024-07-31 15:59:07 -07:00
parent c57a6d614b
commit f4a2ec0fb3
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D

View file

@ -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
)