Browse Source

ref: upgrade mypy to 1.10 (#69805)

<!-- Describe your PR here. -->
anthony sottile 10 months ago
parent
commit
64d2268a52
3 changed files with 3 additions and 5 deletions
  1. 1 1
      requirements-dev-frozen.txt
  2. 1 1
      requirements-dev.txt
  3. 1 3
      src/sentry/web/frontend/accounts.py

+ 1 - 1
requirements-dev-frozen.txt

@@ -100,7 +100,7 @@ mmh3==4.0.0
 more-itertools==8.13.0
 msgpack==1.0.7
 msgpack-types==0.2.0
-mypy==1.9.0
+mypy==1.10.0
 mypy-extensions==1.0.0
 nodeenv==1.8.0
 oauthlib==3.1.0

+ 1 - 1
requirements-dev.txt

@@ -38,7 +38,7 @@ sentry-forked-django-stubs>=4.2.7.post3
 sentry-forked-djangorestframework-stubs>=3.14.5.post1
 lxml-stubs
 msgpack-types>=0.2.0
-mypy>=1.9
+mypy>=1.10
 types-beautifulsoup4
 types-cachetools
 types-croniter

+ 1 - 3
src/sentry/web/frontend/accounts.py

@@ -1,5 +1,5 @@
 import logging
-from functools import partial, update_wrapper
+from functools import partial
 
 from django.contrib import messages
 from django.contrib.auth import authenticate
@@ -273,12 +273,10 @@ def recover_confirm(request, user_id, hash, mode="recover"):
 
 # Set password variation of password recovery
 set_password_confirm = partial(recover_confirm, mode="set_password")
-set_password_confirm = update_wrapper(set_password_confirm, recover)
 
 
 # Relocation variation of password recovery
 relocate_confirm = partial(recover_confirm, mode="relocate")
-relocate_confirm = update_wrapper(relocate_confirm, recover)
 
 
 @login_required