mirror of
https://github.com/davidhalter/django-stubs.git
synced 2026-10-10 23:29:18 +08:00
1 parent
1219d62b6a
commit
eb80b949af
1 file changed
+4
-1
@@ -18,7 +18,10 @@
|
||||
- case: model_recognises_parent_attributes
|
||||
main: |
|
||||
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:
|
||||
- myapp
|
||||
files:
|
||||
|
||||
Reference in new issue
Block a user