Update mypy to 0.991 (#4106)

* Update mypy from 0.982 to 0.991

* Ignore type error in test

* Don't build on non-master branch pushes by default

* Ignore type error in DRF view test

---------

Co-authored-by: Bruno Alla <alla.brunoo@gmail.com>
This commit is contained in:
pyup.io bot 2023-02-09 04:35:41 -05:00 committed by GitHub
parent 4998a0cab7
commit 3c71b54e4c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@ name: CI
on:
push:
branches: [ "master", "main" ]
pull_request:
concurrency:

View File

@ -13,7 +13,7 @@ watchfiles==0.18.1 # https://github.com/samuelcolvin/watchfiles
# Testing
# ------------------------------------------------------------------------------
mypy==0.982 # https://github.com/python/mypy
mypy==0.991 # https://github.com/python/mypy
django-stubs==1.14.0 # https://github.com/typeddjango/django-stubs
pytest==7.2.1 # https://github.com/pytest-dev/pytest
pytest-sugar==0.9.6 # https://github.com/Frozenball/pytest-sugar

View File

@ -26,7 +26,7 @@ class TestUserViewSet:
view.request = request
response = view.me(request)
response = view.me(request) # type: ignore
assert response.data == {
"username": user.username,