mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-10 00:34:29 +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,)
|
||||
|
||||
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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue