Skip to content

Commit dc1f60d

Browse files
continue fixing
1 parent a75e832 commit dc1f60d

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

packages/postgres-database/src/simcore_postgres_database/models/products.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@
66
"""
77

88
import json
9-
from typing import Literal, TypedDict
9+
from typing import Literal
1010

1111
import sqlalchemy as sa
1212
from sqlalchemy.dialects.postgresql import JSONB
1313
from sqlalchemy.sql import func
14+
from typing_extensions import TypedDict
1415

1516
from .base import metadata
1617
from .groups import groups

services/web/server/src/simcore_service_webserver/session/settings.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
from typing import Final
22

33
from aiohttp import web
4-
from pydantic import AliasChoices, field_validator, PositiveInt
5-
from pydantic.class_validators import field_validator
4+
from pydantic import AliasChoices, PositiveInt, field_validator
65
from pydantic.fields import Field
76
from pydantic.types import SecretStr
87
from settings_library.base import BaseCustomSettings
@@ -22,7 +21,9 @@ class SessionSettings(BaseCustomSettings, MixinSessionSettings):
2221
description="Secret key to encrypt cookies. "
2322
'TIP: python3 -c "from cryptography.fernet import *; print(Fernet.generate_key())"',
2423
min_length=44,
25-
validation_alias=AliasChoices("SESSION_SECRET_KEY", "WEBSERVER_SESSION_SECRET_KEY"),
24+
validation_alias=AliasChoices(
25+
"SESSION_SECRET_KEY", "WEBSERVER_SESSION_SECRET_KEY"
26+
),
2627
)
2728

2829
SESSION_ACCESS_TOKENS_EXPIRATION_INTERVAL_SECS: int = Field(

services/web/server/src/simcore_service_webserver/statics/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import pycountry
88
from aiohttp import web
99
from models_library.utils.change_case import snake_to_camel
10-
from pydantic import AnyHttpUrl, Field, TypeAdapter
10+
from pydantic import AliasChoices, AnyHttpUrl, Field, TypeAdapter
1111
from settings_library.base import BaseCustomSettings
1212

1313
from .._constants import APP_SETTINGS_KEY

0 commit comments

Comments
 (0)