refactor(imports): update import statements and __all__ list
This commit is contained in:
parent
1d4ea92e86
commit
2e8d247603
2 changed files with 14 additions and 3 deletions
|
|
@ -2,8 +2,13 @@ from pydantic import BaseModel, Field, validator, field_validator
|
||||||
from typing import List, Optional
|
from typing import List, Optional
|
||||||
from datetime import date, datetime
|
from datetime import date, datetime
|
||||||
|
|
||||||
from utils import NomenclatureType, SuiviStockType, TypeArticle
|
from utils import (
|
||||||
from utils.enums import normalize_enum_to_int, normalize_string_field
|
NomenclatureType,
|
||||||
|
SuiviStockType,
|
||||||
|
TypeArticle,
|
||||||
|
normalize_enum_to_int,
|
||||||
|
normalize_string_field,
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class EmplacementStockModel(BaseModel):
|
class EmplacementStockModel(BaseModel):
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
from enums import (
|
from .enums import (
|
||||||
TypeArticle,
|
TypeArticle,
|
||||||
TypeCompta,
|
TypeCompta,
|
||||||
TypeRessource,
|
TypeRessource,
|
||||||
|
|
@ -7,6 +7,9 @@ from enums import (
|
||||||
TypeFamille,
|
TypeFamille,
|
||||||
NomenclatureType,
|
NomenclatureType,
|
||||||
SuiviStockType,
|
SuiviStockType,
|
||||||
|
normalize_enum_to_string,
|
||||||
|
normalize_enum_to_int,
|
||||||
|
normalize_string_field,
|
||||||
)
|
)
|
||||||
|
|
||||||
__all__ = [
|
__all__ = [
|
||||||
|
|
@ -18,4 +21,7 @@ __all__ = [
|
||||||
"TypeFamille",
|
"TypeFamille",
|
||||||
"NomenclatureType",
|
"NomenclatureType",
|
||||||
"SuiviStockType",
|
"SuiviStockType",
|
||||||
|
"normalize_enum_to_string",
|
||||||
|
"normalize_enum_to_int",
|
||||||
|
"normalize_string_field",
|
||||||
]
|
]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue