moving to src format

This commit is contained in:
sneakers-the-rat 2024-04-03 16:34:03 -07:00
parent 21dd796f09
commit 5069c3ddd4
Signed by untrusted user who does not match committer: jonny
GPG key ID: 6DCB96EF1E4D232D
8 changed files with 16 additions and 16 deletions

View file

@ -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):
"""

View file

@ -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

View file

@ -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"
]

View file

@ -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

View file

@ -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