mirror of
https://github.com/davidhalter/django-stubs.git
synced 2025-12-06 20:24:31 +08:00
fix compatibility with 0.730 (#189)
This commit is contained in:
@@ -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"'
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user