Skip to content

Commit d18f008

Browse files
author
Rose Yemelyanova
committed
changed name of types file to stop conflic with enum.py types
1 parent 16b0baf commit d18f008

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: src/diffcalc_api/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""API to expose diffcalc-core methods."""
22

3-
from . import config, database, openapi, server, types
3+
from . import config, core_types, database, openapi, server
44
from ._version_git import __version__
55

6-
__all__ = ["__version__", "server", "config", "database", "types", "openapi"]
6+
__all__ = ["__version__", "server", "config", "database", "core_types", "openapi"]
File renamed without changes.

Diff for: src/diffcalc_api/models/response.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
from pydantic import BaseModel
55

6+
from diffcalc_api.core_types import Orientation, Reflection
67
from diffcalc_api.models.ub import HklModel, MiscutModel, SphericalCoordinates, XyzModel
7-
from diffcalc_api.types import Orientation, Reflection
88

99

1010
class InfoResponse(BaseModel):

Diff for: src/diffcalc_api/routes/ub.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from fastapi import APIRouter, Body, Depends, Query
66

7+
from diffcalc_api.core_types import Orientation, Position, Reflection
78
from diffcalc_api.errors.ub import (
89
BothTagAndIdxProvidedError,
910
InvalidSetLatticeParamsError,
@@ -35,7 +36,6 @@
3536
)
3637
from diffcalc_api.services import ub as service
3738
from diffcalc_api.stores.protocol import HklCalcStore, get_store
38-
from diffcalc_api.types import Orientation, Position, Reflection
3939

4040
router = APIRouter(prefix="/ub", tags=["ub"])
4141

0 commit comments

Comments
 (0)