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

Add django.forms.widgets.FILE_INPUT_CONTRADICTION symbol #506

Merged
merged 1 commit into from
Oct 28, 2020

Conversation

@@ -71,6 +71,8 @@ class HiddenInput(Input):
class MultipleHiddenInput(HiddenInput): ...
class FileInput(Input): ...

FILE_INPUT_CONTRADICTION: Any
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't it be object?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was following the example of other some other sentinel objects. For example:
https://github.com/django/django/blob/302caa40e4caab7d95ef7d0a88a90f935039ab09/django/db/models/fields/mixins.py#L3

I could not find any examples in django-stubs of these sorts of sentinel objects being annotated as : object.

I can change this, if you think it should be object.

@sobolevn sobolevn merged commit 695cdb1 into typeddjango:master Oct 28, 2020
@sobolevn
Copy link
Member

Thanks a lot!

@brianhelba brianhelba deleted the input-contradiction branch October 29, 2020 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants