#30755: Have django.views.generic.base.View.as_view() check argument type, via
annotations.
-------------------------------+-----------------------------------------
     Reporter:  David Szotten  |                    Owner:  nobody
         Type:  New feature    |                   Status:  closed
    Component:  Generic views  |                  Version:  master
     Severity:  Normal         |               Resolution:  needsinfo
     Keywords:  typing         |             Triage Stage:  Someday/Maybe
    Has patch:  0              |      Needs documentation:  0
  Needs tests:  0              |  Patch needs improvement:  0
Easy pickings:  0              |                    UI/UX:  0
-------------------------------+-----------------------------------------

Comment (by Carlton Gibson):

 >  In the mean time, would you accept a patch pulling out the initkwargs
 validation from as_view into a helper method, to make it easier for me to
 override this behaviour in my projects?

 TBH, I'd prefer that you override, do your extra validation and then call
 `super()`, rather than adding an additional hook, and all that goes with
 it.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30755#comment:7>
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.c8cf599c1b00101a589b49135ae5eb96%40djangoproject.com.

Reply via email to