Update to mypy 0.770 (#341)

This commit is contained in:
Marti Raudsepp
2020-03-13 15:45:45 +02:00
committed by GitHub
parent afa16bfb74
commit 7af89ee6a6
2 changed files with 3 additions and 3 deletions

View File

@@ -198,7 +198,7 @@ IGNORED_ERRORS = {
], ],
'from_db_value': [ 'from_db_value': [
'"Cash" has no attribute', '"Cash" has no attribute',
'Argument 1 to "__str__" of "Decimal"', '"__str__" of "Decimal"',
], ],
'get_object_or_404': [ 'get_object_or_404': [
'Argument 1 to "get_object_or_404" has incompatible type "str"; ' '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"', '"RequestSite" of "Union[Site, RequestSite]" has no attribute "id"',
], ],
'syndication_tests': [ 'syndication_tests': [
'List or tuple expected as variable arguments' 'Argument 1 to "add_domain" has incompatible type "*Tuple[object, ...]"',
], ],
'sessions_tests': [ 'sessions_tests': [
'Incompatible types in assignment (expression has type "None", variable has type "int")', 'Incompatible types in assignment (expression has type "None", variable has type "int")',

View File

@@ -21,7 +21,7 @@ with open('README.md', 'r') as f:
readme = f.read() readme = f.read()
dependencies = [ dependencies = [
'mypy>=0.760,<0.770', 'mypy>=0.770,<0.780',
'typing-extensions', 'typing-extensions',
'django', 'django',
] ]