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 4bfc9c2 commit 3347de0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions diracx-core/src/diracx/core/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@

T = TypeVar("T")


class SqlalchemyDsn(AnyUrl):
allowed_schemes = {"sqlite+aiosqlite", "mysql+aiomysql"}
SqlalchemyDsn = Annotated[AnyUrl, UrlConstraints(schemes={"sqlite+aiosqlite", "mysql+aiomysql"})]


class _TokenSigningKey(SecretStr):
Expand Down

0 comments on commit 3347de0

Please sign in to comment.