* Fixes CI

* Fixes CI

* Fixes CI
This commit is contained in:
Nikita Sobolev
2021-10-19 14:10:25 +03:00
committed by GitHub
parent fb12560981
commit 7ac33f3a28
7 changed files with 8 additions and 41 deletions

View File

@@ -63,10 +63,7 @@
main: |
from myapp.models import User
reveal_type(User().my_pk) # N: Revealed type is "builtins.int*"
reveal_type(User().id)
out: |
main:3: note: Revealed type is "Any"
main:3: error: "User" has no attribute "id"
User().id # E: "User" has no attribute "id"
installed_apps:
- myapp
files:

View File

@@ -130,10 +130,7 @@
main: |
from myapp.models import View
reveal_type(View().app.views) # N: Revealed type is "django.db.models.manager.RelatedManager[myapp.models.View]"
reveal_type(View().app.unknown)
out: |
main:3: note: Revealed type is "Any"
main:3: error: "App" has no attribute "unknown"
View().app.unknown # E: "App" has no attribute "unknown"
installed_apps:
- myapp
- myapp2