mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 12:44:29 +08:00
add django.contrib.contenttypes to all tests by default
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
Tag.objects.create(content_object=myuser)
|
||||
reveal_type(Tag().content_object) # N: Revealed type is 'Union[Any, None]'
|
||||
installed_apps:
|
||||
- django.contrib.contenttypes
|
||||
- myapp
|
||||
files:
|
||||
- path: myapp/__init__.py
|
||||
|
||||
@@ -25,7 +25,6 @@
|
||||
reveal_type(book.publisher_id) # N: Revealed type is 'builtins.int*'
|
||||
reveal_type(book.owner_id) # N: Revealed type is 'builtins.int*'
|
||||
installed_apps:
|
||||
- django.contrib.contenttypes
|
||||
- django.contrib.auth
|
||||
- myapp
|
||||
files:
|
||||
|
||||
@@ -30,7 +30,6 @@
|
||||
mymodel = MyModel(user_id=1)
|
||||
reveal_type(mymodel.id) # N: Revealed type is 'builtins.int*'
|
||||
installed_apps:
|
||||
- django.contrib.contenttypes
|
||||
- django.contrib.auth
|
||||
- myapp
|
||||
files:
|
||||
|
||||
Reference in New Issue
Block a user