diff --git a/diracx-core/src/diracx/core/settings.py b/diracx-core/src/diracx/core/settings.py index 441af0cf..29e29d69 100644 --- a/diracx-core/src/diracx/core/settings.py +++ b/diracx-core/src/diracx/core/settings.py @@ -17,7 +17,9 @@ T = TypeVar("T") -SqlalchemyDsn = Annotated[AnyUrl, UrlConstraints(schemes={"sqlite+aiosqlite", "mysql+aiomysql"})] +SqlalchemyDsn = Annotated[ + AnyUrl, UrlConstraints(allowed_schemes={"sqlite+aiosqlite", "mysql+aiomysql"}) +] class _TokenSigningKey(SecretStr):