Skip to content

Commit 630086b

Browse files
committed
fix import
1 parent 762e7a1 commit 630086b

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

api/domain/provider/entities.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
# Add world as a country code, default value of the carbon footprint computation framework
1111
country_codes = [country.alpha_3 for country in pycountry.countries] + ["WOR"]
12-
ProviderCarbonFootprintZone = StrEnum("ProviderCarbonFootprintZone", **{str(code).upper(): str(code) for code in sorted(set(country_codes))})
12+
ProviderCarbonFootprintZone = StrEnum("ProviderCarbonFootprintZone", {str(code).upper(): str(code) for code in sorted(set(country_codes))})
1313

1414

1515
class ProviderType(StrEnum):

api/infrastructure/fastapi/schemas/providers.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Annotated, Literal
22

3-
from pydantic import Field, model_validator
4-
from pydantic.v1 import StringConstraints
3+
from pydantic import Field, StringConstraints, model_validator
54

65
from api.domain.provider.entities import ProviderCarbonFootprintZone, ProviderType
76
from api.schemas import BaseModel

api/schemas/documents.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from api.schemas.chunks import ChunkMetadata
1212
from api.utils.exceptions import FileSizeLimitExceededException
1313

14-
PresetSeparators = StrEnum("PresetSeparators", {**{m.name: m.value for m in Language}})
14+
PresetSeparators = StrEnum("PresetSeparators", {m.name: m.value for m in Language})
1515

1616

1717
class Document(BaseModel):

cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ def _status_renderable() -> Table:
374374

375375
def _startup_renderable() -> Group:
376376
status_block = _status_renderable()
377-
log_lines = recent_lines[-6:]
377+
log_lines = recent_lines[-20:]
378378
logs_block: RenderableType
379379
if log_lines:
380380
logs_block = Group(*[Text(f" {line}", style="dim") for line in log_lines])

0 commit comments

Comments
 (0)