From 6e6d1645d32952dd13084394831f96ef2dfa19bc Mon Sep 17 00:00:00 2001 From: Maxim Kurnikov Date: Thu, 21 Feb 2019 00:06:09 +0300 Subject: [PATCH] enable incremental mode for tests, disable it for one so that it would pass --- test-data/plugins.ini | 2 +- test-data/typecheck/fields.test | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/test-data/plugins.ini b/test-data/plugins.ini index 2aba9f5..b7b510b 100644 --- a/test-data/plugins.ini +++ b/test-data/plugins.ini @@ -1,5 +1,5 @@ [mypy] -incremental = False +incremental = True strict_optional = True plugins = mypy_django_plugin.main diff --git a/test-data/typecheck/fields.test b/test-data/typecheck/fields.test index e552b17..0216777 100644 --- a/test-data/typecheck/fields.test +++ b/test-data/typecheck/fields.test @@ -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