Skip to content

Commit

Permalink
changed name of types file to stop conflic with enum.py types
Browse files Browse the repository at this point in the history
  • Loading branch information
Rose Yemelyanova committed Nov 30, 2022
1 parent 16b0baf commit d18f008
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/diffcalc_api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""API to expose diffcalc-core methods."""

from . import config, database, openapi, server, types
from . import config, core_types, database, openapi, server
from ._version_git import __version__

__all__ = ["__version__", "server", "config", "database", "types", "openapi"]
__all__ = ["__version__", "server", "config", "database", "core_types", "openapi"]
File renamed without changes.
2 changes: 1 addition & 1 deletion src/diffcalc_api/models/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

from pydantic import BaseModel

from diffcalc_api.core_types import Orientation, Reflection
from diffcalc_api.models.ub import HklModel, MiscutModel, SphericalCoordinates, XyzModel
from diffcalc_api.types import Orientation, Reflection


class InfoResponse(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/diffcalc_api/routes/ub.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from fastapi import APIRouter, Body, Depends, Query

from diffcalc_api.core_types import Orientation, Position, Reflection
from diffcalc_api.errors.ub import (
BothTagAndIdxProvidedError,
InvalidSetLatticeParamsError,
Expand Down Expand Up @@ -35,7 +36,6 @@
)
from diffcalc_api.services import ub as service
from diffcalc_api.stores.protocol import HklCalcStore, get_store
from diffcalc_api.types import Orientation, Position, Reflection

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

Expand Down

0 comments on commit d18f008

Please sign in to comment.