mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-09-19 23:44:28 +00:00
fix ruff problem from newer ruff version
This commit is contained in:
parent
c57a6d614b
commit
f4a2ec0fb3
1 changed files with 1 additions and 3 deletions
|
@ -228,9 +228,7 @@ class ContainerMeta(
|
||||||
return (norm_shape_expression,)
|
return (norm_shape_expression,)
|
||||||
|
|
||||||
def __subclasscheck__(cls, subclass: Any) -> bool:
|
def __subclasscheck__(cls, subclass: Any) -> bool:
|
||||||
type_match = type(subclass) == type( # pylint: disable=unidiomatic-typecheck
|
type_match = type(subclass) is type(cls)
|
||||||
cls
|
|
||||||
)
|
|
||||||
return type_match and (
|
return type_match and (
|
||||||
subclass.__args__ == cls.__args__ or not cls._parameterized
|
subclass.__args__ == cls.__args__ or not cls._parameterized
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue