From 7af89ee6a6d4973b378007a22ca529c2a63ee5c1 Mon Sep 17 00:00:00 2001 From: Marti Raudsepp Date: Fri, 13 Mar 2020 15:45:45 +0200 Subject: [PATCH] Update to mypy 0.770 (#341) --- scripts/enabled_test_modules.py | 4 ++-- setup.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/enabled_test_modules.py b/scripts/enabled_test_modules.py index d67c0cf..4e01978 100644 --- a/scripts/enabled_test_modules.py +++ b/scripts/enabled_test_modules.py @@ -198,7 +198,7 @@ IGNORED_ERRORS = { ], 'from_db_value': [ '"Cash" has no attribute', - 'Argument 1 to "__str__" of "Decimal"', + '"__str__" of "Decimal"', ], 'get_object_or_404': [ 'Argument 1 to "get_object_or_404" has incompatible type "str"; ' @@ -399,7 +399,7 @@ IGNORED_ERRORS = { '"RequestSite" of "Union[Site, RequestSite]" has no attribute "id"', ], 'syndication_tests': [ - 'List or tuple expected as variable arguments' + 'Argument 1 to "add_domain" has incompatible type "*Tuple[object, ...]"', ], 'sessions_tests': [ 'Incompatible types in assignment (expression has type "None", variable has type "int")', diff --git a/setup.py b/setup.py index 3962f18..cced5e6 100644 --- a/setup.py +++ b/setup.py @@ -21,7 +21,7 @@ with open('README.md', 'r') as f: readme = f.read() dependencies = [ - 'mypy>=0.760,<0.770', + 'mypy>=0.770,<0.780', 'typing-extensions', 'django', ]