Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Christoph.Heindl committed Apr 11, 2022
1 parent 5275fc8 commit 54055e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pydantic_numpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ def validate(cls, val: Any, field: ModelField) -> np.ndarray:
return _validate(cls, val, field)

class PotentialNDArray(Generic[T], np.ndarray):
"""Like NDArray, but validation errors result in None."""

@classmethod
def __get_validators__(cls):
yield cls.validate
Expand Down
File renamed without changes.

0 comments on commit 54055e0

Please sign in to comment.