enable incremental mode for tests, disable it for one so that it would pass

This commit is contained in:
Maxim Kurnikov
2019-02-21 00:06:09 +03:00
parent 2bd018951b
commit 6e6d1645d3
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
[mypy]
incremental = False
incremental = True
strict_optional = True
plugins =
mypy_django_plugin.main

View File

@@ -7,6 +7,8 @@ class User(models.Model):
user = User()
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]
from django.db import models