Created
April 1, 2024 12:01
-
-
Save cnicolai/84df875b78b8b2827313c82fdb1fd8f4 to your computer and use it in GitHub Desktop.
This file contains hidden or 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, ConfigDict | |
class MyVlass(BaseModel): | |
# make class immutable | |
model_config = ConfigDict(frozen=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment