#30755: Arguments to django.views.generic.base.View.as_view()
-------------------------------+--------------------------------------
Reporter: David Szotten | Owner: nobody
Type: New feature | Status: new
Component: Generic views | Version: 2.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------------------------
Changes (by Simon Charette):
* type: Uncategorized => New feature
Comment:
I think we should keep the `TypeError` behaviour as it's an effective way
of catching typos and follows the configurable pattern.
If we were adding support fallback for `__annotations__` I believe a
`TypeError` should be raised if no value is provided.
Not sure it's worth doing though as `foo: annotation = None` is a good way
to provide a default and an annotation.
--
Ticket URL: <https://code.djangoproject.com/ticket/30755#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/070.d00a6b2f74fb811ee213a84719779f29%40djangoproject.com.