Skip to content

Commit 38135f2

Browse files
authored
Merge pull request #281 from mkurnikov/update-deps
Update dev deps, mypy to 0.760
2 parents c1af26c + 998b659 commit 38135f2

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

dev-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
black
2-
pytest-mypy-plugins==1.1.0
2+
pytest-mypy-plugins==1.2.0
33
psycopg2
44
flake8==3.7.9
55
flake8-pyi==19.3.0

scripts/enabled_test_modules.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@
178178
],
179179
'files': [
180180
'Incompatible types in assignment (expression has type "IOBase", variable has type "File")',
181-
'Argument 1 to "write" of "SpooledTemporaryFile"',
182181
],
183182
'filtered_relation': [
184183
'has no attribute "name"',
@@ -231,13 +230,8 @@
231230
],
232231
'mail': [
233232
'List item 1 has incompatible type "None"; expected "str"',
234-
'Argument 1 to "push" of "SMTPChannel" has incompatible type "str"; expected "bytes"',
235-
'Value of type "Union[List[Message], str, bytes, None]" is not indexable',
236233
'Incompatible types in assignment '
237234
+ '(expression has type "bool", variable has type "Union[SMTP_SSL, SMTP, None]")',
238-
re.compile(
239-
r'Item "(int|str)" of "Union\[Message, str, int, Any\]" has no attribute "(get_content_type|get_filename)"'
240-
)
241235
],
242236
'messages_tests': [
243237
'List item 0 has incompatible type "Dict[str, Message]"; expected "Message"',
@@ -320,9 +314,6 @@
320314
'model_enums': [
321315
"'bool' is not a valid base class",
322316
],
323-
'multiple_database': [
324-
'Unexpected attribute "extra_arg" for model "Book"'
325-
],
326317
'null_queries': [
327318
"Cannot resolve keyword 'foo' into field"
328319
],

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ def find_stub_files(name: str) -> List[str]:
2121
readme = f.read()
2222

2323
dependencies = [
24-
'mypy>=0.750,<0.760',
24+
'mypy>=0.760,<0.770',
2525
'typing-extensions',
2626
'django',
2727
]
2828

2929
setup(
3030
name="django-stubs",
31-
version="1.3.3",
31+
version="1.4.0",
3232
description='Mypy stubs for Django',
3333
long_description=readme,
3434
long_description_content_type='text/markdown',

0 commit comments

Comments
 (0)