Skip to content

Commit

Permalink
moving to src format
Browse files Browse the repository at this point in the history
  • Loading branch information
sneakers-the-rat committed Apr 3, 2024
1 parent 21dd796 commit 5069c3d
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
3 changes: 2 additions & 1 deletion docs/ndarray.md
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down
13 changes: 0 additions & 13 deletions numpydantic/__init__.py

This file was deleted.

11 changes: 11 additions & 0 deletions src/numpydantic/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
]
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion numpydantic/ndarray.py → src/numpydantic/ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@
* 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
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_ndarray.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
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


Expand Down

0 comments on commit 5069c3d

Please sign in to comment.