mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-11-01 10:16:22 +08:00
fix httprequest other fields
This commit is contained in:
1 parent
d7d379e1cd
commit
39fb48b08a
2 files changed
+3
-1
No files matched your search
@@ -3,6 +3,8 @@
|
||||
main: |
|
||||
from django.http.request import HttpRequest
|
||||
reveal_type(HttpRequest().user) # N: Revealed type is 'myapp.models.MyUser'
|
||||
# check that other fields work ok
|
||||
reveal_type(HttpRequest().method) # N: Revealed type is 'Union[builtins.str, None]'
|
||||
installed_apps:
|
||||
- myapp
|
||||
additional_settings:
|
||||
|
||||
Reference in new issue
Block a user