Skip to content

Commit c030e6f

Browse files
authored
Bump pytest-mypy-plugins and mypy (#557)
1 parent 792d86d commit c030e6f

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ wheel
22
pre-commit==3.5.0; python_version < '3.9'
33
pre-commit==3.6.2; python_version >= '3.9'
44
pytest==8.1.1
5-
pytest-mypy-plugins==3.0.0
5+
pytest-mypy-plugins==3.1.1
66
djangorestframework==3.14.0
77
types-pytz==2024.1.0.20240203
88
types-requests==2.31.0.20240311

scripts/stubtest/allowlist_todo.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Unsorted: there are real problems and things we can really ignore.
33

44
rest_framework.authtoken.admin.TokenAdmin
5+
rest_framework.authtoken.admin.User
56
rest_framework.authtoken.default_app_config
67
rest_framework.authtoken.management.commands.drf_create_token.UserModel
78
rest_framework.authtoken.models.Token.created

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,5 +64,6 @@ def find_stub_files(name: str) -> List[str]:
6464
],
6565
project_urls={
6666
"Release notes": "https://github.com/typeddjango/djangorestframework-stubs/releases",
67+
"Funding": "https://github.com/sponsors/typeddjango",
6768
},
6869
)

tests/typecheck/test_exceptions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,6 @@
4545
APIException('I am just a message', code='msg')
4646
APIException()
4747
APIException(None, None)
48-
APIException(...) # E: Argument 1 to "APIException" has incompatible type "ellipsis"; expected "_APIExceptionInput"
49-
APIException({'a': ...}) # E: Dict entry 0 has incompatible type "str": "ellipsis"; expected "str": "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
50-
APIException({'a': ['test', ...]}) # E: List item 1 has incompatible type "ellipsis"; expected "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
48+
APIException(1) # E: Argument 1 to "APIException" has incompatible type "int"; expected "_APIExceptionInput"
49+
APIException({'a': 1}) # E: Dict entry 0 has incompatible type "str": "int"; expected "str": "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"
50+
APIException({'a': ['test', 1]}) # E: List item 1 has incompatible type "int"; expected "Union[_StrPromise, Sequence[_APIExceptionInput], Mapping[str, _APIExceptionInput], None]"

0 commit comments

Comments
 (0)