mirror of
https://github.com/p2p-ld/numpydantic.git
synced 2024-11-12 17:54:29 +00:00
moving to src format
This commit is contained in:
parent
21dd796f09
commit
5069c3ddd4
8 changed files with 16 additions and 16 deletions
|
@ -21,7 +21,8 @@ so any array syntax is valid there. (see [TODO](todo) for caveats)
|
|||
```python
|
||||
from typing import Union
|
||||
from pydantic import BaseModel
|
||||
from numpydantic import NDArray, Shape, UInt8, Float, Int
|
||||
from src.numpydantic import NDArray, Shape, UInt8, Float, Int
|
||||
|
||||
|
||||
class Image(BaseModel):
|
||||
"""
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
# ruff: noqa: E402
|
||||
# ruff: noqa: F401
|
||||
# ruff: noqa: I001
|
||||
from numpydantic.monkeypatch import apply_patches
|
||||
|
||||
apply_patches()
|
||||
|
||||
from numpydantic.ndarray import NDArray
|
||||
|
||||
# convenience imports for typing - finish this!
|
||||
from typing import Any
|
||||
|
||||
from nptyping import Float, Int, Number, Shape, UInt8
|
|
@ -0,0 +1,11 @@
|
|||
# ruff: noqa: E402
|
||||
# ruff: noqa: F401
|
||||
# ruff: noqa: I001
|
||||
from numpydantic.monkeypatch import apply_patches
|
||||
apply_patches()
|
||||
|
||||
from numpydantic.ndarray import NDArray
|
||||
|
||||
__all__ = [
|
||||
"NDArray"
|
||||
]
|
|
@ -3,11 +3,12 @@ Extension of nptyping NDArray for pydantic that allows for JSON-Schema serializa
|
|||
|
||||
* Order to store data in (row first)
|
||||
"""
|
||||
|
||||
import base64
|
||||
import sys
|
||||
from collections.abc import Callable
|
||||
from copy import copy
|
||||
from typing import TYPE_CHECKING, Any, Union
|
||||
from typing import Any
|
||||
|
||||
import blosc2
|
||||
import nptyping.structure
|
|
@ -7,7 +7,7 @@ import numpy as np
|
|||
from pydantic import BaseModel, ValidationError, Field
|
||||
from nptyping import Shape, Number
|
||||
|
||||
from numpydantic.ndarray import NDArray
|
||||
from numpydantic import NDArray
|
||||
from numpydantic.proxy import NDArrayProxy
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue