Created
December 6, 2022 17:53
-
-
Save ShahriyarR/3202b1799c12cd26c686634364704f9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pydantic import BaseModel | |
class DBCredentialsModel(BaseModel): | |
comment: str | |
password: Password | |
uri: DBUri | |
port: DBPort | |
host: DBHost | |
class Config: | |
arbitrary_types_allowed = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment