mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-07 04:34:29 +08:00
enable incremental mode for tests, disable it for one so that it would pass
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
[mypy]
|
[mypy]
|
||||||
incremental = False
|
incremental = True
|
||||||
strict_optional = True
|
strict_optional = True
|
||||||
plugins =
|
plugins =
|
||||||
mypy_django_plugin.main
|
mypy_django_plugin.main
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ class User(models.Model):
|
|||||||
|
|
||||||
user = User()
|
user = User()
|
||||||
reveal_type(user.array) # E: Revealed type is 'builtins.list*[Any]'
|
reveal_type(user.array) # E: Revealed type is 'builtins.list*[Any]'
|
||||||
|
[mypy_options --no-incremental]
|
||||||
|
[out]
|
||||||
|
|
||||||
[CASE array_field_base_field_parsed_into_generic_typevar]
|
[CASE array_field_base_field_parsed_into_generic_typevar]
|
||||||
from django.db import models
|
from django.db import models
|
||||||
|
|||||||
Reference in New Issue
Block a user