#35260: request.GET is improperly type annotated
-----------------------------------------+------------------------
               Reporter:  Yidi Sprei     |          Owner:  nobody
                   Type:  Bug            |         Status:  new
              Component:  Uncategorized  |        Version:  5.0
               Severity:  Normal         |       Keywords:
           Triage Stage:  Unreviewed     |      Has patch:  0
    Needs documentation:  0              |    Needs tests:  0
Patch needs improvement:  0              |  Easy pickings:  0
                  UI/UX:  0              |
-----------------------------------------+------------------------
 request.GET does not appear to have proper type hints. If you put () after
 request.GET, it raises an error (TypeError: 'QueryDict' object is not
 callable) because it is not supposed to be called. So the only way it
 works is to have it without calling it and accessing the dictionary that
 way. However, typecheckers seem to think that it lacks an instantiation
 which makes sense intuitively. This should be pretty easily fixable for
 typecheckers by just adding better type-annotations. Or if possible to
 make request.GET have a callable that returns the dictionary as well so
 that devs can opt for the more pythonic option.
-- 
Ticket URL: <https://code.djangoproject.com/ticket/35260>
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/0107018df2a2e746-ac415bd9-f879-4fff-9a6b-e7db7b8e0cdc-000000%40eu-central-1.amazonses.com.

Reply via email to