-
-
Notifications
You must be signed in to change notification settings - Fork 454
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
Form.changed_data is not callable fixes #148 #149
Conversation
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 a lot! Good catch.
django-stubs/forms/forms.pyi
Outdated
@@ -29,6 +29,7 @@ class BaseForm: | |||
fields: Dict[str, Any] = ... | |||
renderer: BaseRenderer = ... | |||
cleaned_data: Any = ... | |||
changed_data: List[str]: ... |
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.
Can we make it a @propery
? I guess it is the closest match.
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.
Oh good idea, I changed it 👍
Thanks! |
@sobolevn Thanks for merging! When will the next tag be released with this change? |
Sorry, we don't have any release schedule yet. Can you use @mkurnikov can you please help us here? |
Hello, this PR actually makes two changes: - add the missing `EmptyFieldListFilter`. - fix the model `Index` class which also accepts positional parameters. I am not sure if this is the right way to contribute to this repository. - Is it ok to submit both changes in a single PR? - How can I be sure everything is working fine? (a.k.a. tests)
When trying to annotate references to
changed_data
I noticed that mypy suggests its type should beCallable[[BaseForm], List[str]]
but since it's an@cached_property
it is not callable, so it should beList[str]
.