#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 David Szotten):

 sorry if i was unclear, but i think part of the original intent got lost.
 the point is that we also need to _remove_ (well, relax) some of the
 existing validation, because it checks that all initkwargs are attributes
 on the class, and `key` in my example above isn't ("pure" annotations
 don't become attributes on the class)

-- 
Ticket URL: <https://code.djangoproject.com/ticket/30755#comment:8>
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 django-updates+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/070.a74a276baae30d1bcb11394553d1fd7b%40djangoproject.com.

Reply via email to