Skip to content

Commit f9dbe53

Browse files
author
Andrei Neagu
committed
mypy
1 parent 143f13c commit f9dbe53

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/api/rest/routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ def setup_rest_api(app: FastAPI):
1616
app.include_router(api_router)
1717

1818
app.add_exception_handler(Exception, handle_errors_as_500)
19-
app.add_exception_handler(HTTPException, http_exception_as_json_response)
19+
app.add_exception_handler(HTTPException, http_exception_as_json_response) # type: ignore[arg-type]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
from pydantic.errors import PydanticErrorMixin
1+
from common_library.errors_classes import OsparcErrorMixin
22

33

4-
class BaseDynamicSchedulerError(PydanticErrorMixin, ValueError):
5-
code = "simcore.service.dynamic.scheduler"
4+
class BaseDynamicSchedulerError(OsparcErrorMixin, ValueError):
5+
code = "simcore.service.dynamic.scheduler" # type:ignore[assignment]

services/dynamic-scheduler/src/simcore_service_dynamic_scheduler/core/settings.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
from functools import cached_property
33

44
from common_library.pydantic_validators import timedelta_try_convert_str_to_float
5-
from pydantic import AliasChoices, ConfigDict, Field, field_validator
5+
from pydantic import AliasChoices, Field, field_validator
6+
from pydantic_settings import SettingsConfigDict
67
from settings_library.application import BaseApplicationSettings
78
from settings_library.basic_types import LogLevel, VersionTag, VersionTagAdapter
89
from settings_library.director_v2 import DirectorV2Settings
@@ -60,7 +61,7 @@ def LOG_LEVEL(self): # noqa: N802
6061
def valid_log_level(cls, value: str) -> str:
6162
return cls.validate_log_level(value)
6263

63-
model_config = ConfigDict(extra="allow")
64+
model_config = SettingsConfigDict(extra="allow")
6465

6566

6667
class ApplicationSettings(_BaseApplicationSettings):

0 commit comments

Comments
 (0)