-
-
Notifications
You must be signed in to change notification settings - Fork 452
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
Update db.migrations.operations
#2349
base: master
Are you sure you want to change the base?
Conversation
class OperationCategory(str, Enum): | ||
ADDITION = "+" | ||
REMOVAL = "-" | ||
ALTERATION = "~" | ||
PYTHON = "p" | ||
SQL = "s" | ||
MIXED = "?" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Having the actual values seems to be recommended.
reversible: ClassVar[bool] | ||
reduces_to_sql: ClassVar[bool] | ||
atomic: ClassVar[bool] | ||
elidable: ClassVar[bool] | ||
serialization_expand_args: ClassVar[list[str]] | ||
category: ClassVar[OperationCategory | None] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe they are all class vars?
The stubtest error is annoying.. Looks like mixing |
efc10cb
to
79183d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, just one question
atomic: ClassVar[bool] | ||
elidable: ClassVar[bool] | ||
serialization_expand_args: ClassVar[list[str]] | ||
category: ClassVar[OperationCategory | None] | ||
_constructor_args: tuple[Sequence[Any], dict[str, Any]] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we have this protected member here? Is it still useful?
I have made things!
Related issues