Skip to content

Commit 49b4c5f

Browse files
authored
Update recommended mypy & CI to 1.1.1 (#374)
* Updated mypy to 1.1.1 for compatible-mypy and CI * Minor tweak needed to typecheck ignores
1 parent a85d71c commit 49b4c5f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ djangorestframework==3.14.0
77
types-pytz==2022.7.1.2
88
types-requests==2.28.11.15
99
types-urllib3==1.26.25.8
10-
django-stubs==1.15.0
10+
git+https://github.com/typeddjango/django-stubs@update-mypy
1111
django-stubs-ext==0.7.0
1212
-e .[compatible-mypy,coreapi,markdown]

scripts/typecheck_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@
8383
'Incompatible types in assignment (expression has type "AsView[GenericView]", variable has type "AsView[Callable[[HttpRequest], Any]]")', # noqa: E501
8484
'Argument "patterns" to "SchemaGenerator" has incompatible type "List[object]"',
8585
'Argument 1 to "field_to_schema" has incompatible type "object"; expected "Field[Any, Any, Any, Any]"',
86-
'"Module rest_framework.schemas.coreapi" does not explicitly export attribute "coreapi"',
86+
'Module "rest_framework.schemas.coreapi" does not explicitly export attribute "coreapi"',
8787
],
8888
"browsable_api": [
8989
'expression has type "List[Dict[str, Dict[str, int]]]"',

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def find_stub_files(name: str) -> List[str]:
2929
]
3030

3131
extras_require = {
32-
"compatible-mypy": ["mypy>=1.0,<1.1"],
32+
"compatible-mypy": ["mypy>=1.1.1,<1.2"],
3333
"coreapi": ["coreapi>=2.0.0"],
3434
"markdown": ["types-Markdown>=0.1.5"],
3535
}

0 commit comments

Comments
 (0)