Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

User defined builtins #33

Merged
merged 3 commits into from
Jun 22, 2023
Merged

User defined builtins #33

merged 3 commits into from
Jun 22, 2023

Conversation

povilasb
Copy link
Collaborator

class Ulid(str):
    ...

class User(BaseModel):
    id: Ulid

is equivalent to

class User(BaseModel):
    id: str

@povilasb povilasb merged commit ad24d7b into main Jun 22, 2023
3 checks passed
@povilasb povilasb deleted the user-defined-builtins branch June 22, 2023 11:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant