mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-12 17:54:29 +00:00
Make DtypeError inherit from ValueError as well so that pydantic correctly wraps it in ValidationError
This commit is contained in:
parent
2f5a4be8e7
commit
3544ce2bdc
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ class InterfaceError(Exception):
|
|||
"""Parent mixin class for errors raised by :class:`.Interface` subclasses"""
|
||||
|
||||
|
||||
class DtypeError(TypeError, InterfaceError):
|
||||
class DtypeError(ValueError, TypeError, InterfaceError):
|
||||
"""Exception raised for invalid dtypes"""
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue