Skip to content

Commit

Permalink
Fix definition of SqlalchemyDsn for pydantic 2
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisburr committed Jun 8, 2024
1 parent 3347de0 commit c48350a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diracx-core/src/diracx/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit c48350a

Please sign in to comment.