mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-20 02:41:16 +08:00
@@ -18,7 +18,10 @@
|
|||||||
- case: model_recognises_parent_attributes
|
- case: model_recognises_parent_attributes
|
||||||
main: |
|
main: |
|
||||||
from myapp.models import Child
|
from myapp.models import Child
|
||||||
Child.objects.create(name='Maxim', lastname='Maxim2')
|
c = Child.objects.create(name='Maxim', lastname='Maxim2')
|
||||||
|
reveal_type(c.id) # N: Revealed type is "builtins.int*"
|
||||||
|
reveal_type(c.name) # N: Revealed type is "builtins.str*"
|
||||||
|
reveal_type(c.lastname) # N: Revealed type is "builtins.str*"
|
||||||
installed_apps:
|
installed_apps:
|
||||||
- myapp
|
- myapp
|
||||||
files:
|
files:
|
||||||
|
|||||||
Reference in New Issue
Block a user