-
Notifications
You must be signed in to change notification settings - Fork 12
Add Typing #13
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
base: main
Are you sure you want to change the base?
Add Typing #13
Conversation
c7fcdc0 to
0b001e6
Compare
90c05e1 to
9194723
Compare
ca653bf to
4e3ac13
Compare
8e77aac to
4251f54
Compare
d8836db to
3f506d5
Compare
|
Please rebase.
|
Codecov Report❌ Patch coverage is
🚀 New features to boost your workflow:
|
3fd9cab to
cebd6e9
Compare
| self.model.publish() | ||
| assert self.model.state == "published" | ||
| transitions = self.model.get_available_state_transitions() | ||
| transitions = self.model.get_available_state_transitions() # type: ignore[attr-defined] |
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.
would be nice to find a way to add typing dynamically...
| class DeferrableModel(models.Model): | ||
| state = FSMField(default="new") | ||
|
|
||
| objects: ClassVar[models.Manager[DeferrableModel]] = models.Manager() |
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 noticed models declared in tests doesn't benefit from django stubs magic ... :(
c5561fe to
532d6ee
Compare
Closes #12