fix compatibility with 0.730 (#189)

This commit is contained in:
Maxim Kurnikov
2019-09-28 05:23:55 +03:00
committed by GitHub
parent 7725b416b6
commit be3fc259d5
8 changed files with 15 additions and 22 deletions

View File

@@ -69,7 +69,8 @@ IGNORED_ERRORS = {
'SimpleLazyObject'
],
'aggregation': [
re.compile(r'got "Optional\[(Author|Publisher)\]", expected "Union\[(Author|Publisher), Combinable\]"')
re.compile(r'got "Optional\[(Author|Publisher)\]", expected "Union\[(Author|Publisher), Combinable\]"'),
'Argument 2 for "super" not an instance of argument 1',
],
'annotations': [
'Incompatible type for "store" of "Employee" (got "Optional[Store]", expected "Union[Store, Combinable]")'
@@ -151,7 +152,8 @@ IGNORED_ERRORS = {
],
'file_uploads': [
'"Iterable[Any]" has no attribute',
'"IO[Any]" has no attribute'
'"IO[Any]" has no attribute',
'has no attribute "content_type"',
],
'file_storage': [
'Incompatible types in assignment (expression has type "Callable"'

View File

@@ -76,8 +76,7 @@ if __name__ == '__main__':
mypy_options = ['--cache-dir', str(mypy_config_file.parent / '.mypy_cache'),
'--config-file', str(mypy_config_file),
'--show-traceback',
# '--no-error-summary',
# '--no-pretty',
'--no-error-summary',
'--hide-error-context'
]
mypy_options += [str(tests_root)]