diff --git a/src/api/config.py b/src/api/config.py index 46422949..6d292d56 100644 --- a/src/api/config.py +++ b/src/api/config.py @@ -4,7 +4,7 @@ from dataclasses import dataclass from application.stringifier import StringifierConfig from application.rounder import RoundingConfig -import application.error_messages as error_messages +from application import error_messages @dataclass diff --git a/src/api/parsers.py b/src/api/parsers.py index 98b18461..87bbd921 100644 --- a/src/api/parsers.py +++ b/src/api/parsers.py @@ -2,7 +2,7 @@ from decimal import Decimal from application.helpers import Helpers -import application.error_messages as error_messages +from application import error_messages from domain.value import Value from domain.uncertainty import Uncertainty diff --git a/src/api/res.py b/src/api/res.py index 8d39d478..bbe757ac 100644 --- a/src/api/res.py +++ b/src/api/res.py @@ -7,7 +7,7 @@ import api.config as c from application.cache import ResultsCache from application.rounder import Rounder -import application.error_messages as error_messages +from application import error_messages from domain.result import Result _res_cache = ResultsCache() diff --git a/src/application/helpers.py b/src/application/helpers.py index 28cafbf3..0d41b3d2 100644 --- a/src/application/helpers.py +++ b/src/application/helpers.py @@ -2,7 +2,7 @@ import decimal from decimal import Decimal -import application.error_messages as error_messages +from application import error_messages _NUMBER_TO_WORD = { 0: "zero", diff --git a/src/application/latex_commandifier.py b/src/application/latex_commandifier.py index 4745a7a6..0b06f193 100644 --- a/src/application/latex_commandifier.py +++ b/src/application/latex_commandifier.py @@ -1,7 +1,7 @@ from application.stringifier import Stringifier from application.helpers import Helpers from application.latex_ifelse import LatexIfElseBuilder -import application.error_messages as error_messages +from application import error_messages from domain.result import Result diff --git a/src/application/rounder.py b/src/application/rounder.py index 35c3d54d..1eef8d2c 100644 --- a/src/application/rounder.py +++ b/src/application/rounder.py @@ -6,7 +6,7 @@ from domain.uncertainty import Uncertainty from domain.value import Value, DecimalPlacesError from application.helpers import Helpers -import application.error_messages as error_messages +from application import error_messages @dataclass diff --git a/src/domain/value.py b/src/domain/value.py index d6464448..1a454d18 100644 --- a/src/domain/value.py +++ b/src/domain/value.py @@ -2,7 +2,7 @@ from decimal import Decimal from application.helpers import Helpers -import application.error_messages as error_messages +from application import error_messages class DecimalPlacesError(Exception):