Browse Source

Revert "ref: upgrade mypy to 1.12.x (#79587)"

This reverts commit a19c646e3e23ff98829dcaca8fc5232bb2a372d8.

Co-authored-by: asottile-sentry <103459774+asottile-sentry@users.noreply.github.com>
getsentry-bot 4 months ago
parent
commit
9e3fe7dd62
3 changed files with 5 additions and 5 deletions
  1. 2 2
      requirements-dev-frozen.txt
  2. 2 2
      requirements-dev.txt
  3. 1 1
      tests/tools/mypy_helpers/test_plugin.py

+ 2 - 2
requirements-dev-frozen.txt

@@ -101,7 +101,7 @@ mmh3==4.0.0
 more-itertools==8.13.0
 msgpack==1.0.7
 msgpack-types==0.2.0
-mypy==1.12.1
+mypy==1.11.2
 mypy-extensions==1.0.0
 nodeenv==1.9.1
 oauthlib==3.1.0
@@ -180,7 +180,7 @@ selenium==4.16.0
 sentry-arroyo==2.16.5
 sentry-cli==2.16.0
 sentry-devenv==1.13.0
-sentry-forked-django-stubs==5.1.0.post3
+sentry-forked-django-stubs==5.1.0.post2
 sentry-forked-djangorestframework-stubs==3.15.1.post2
 sentry-kafka-schemas==0.1.111
 sentry-ophio==1.0.0

+ 2 - 2
requirements-dev.txt

@@ -35,11 +35,11 @@ pip-tools>=7.1.0
 packaging>=21.3
 
 # for type checking
-sentry-forked-django-stubs>=5.1.0.post3
+sentry-forked-django-stubs>=5.1.0.post2
 sentry-forked-djangorestframework-stubs>=3.15.1.post2
 lxml-stubs
 msgpack-types>=0.2.0
-mypy>=1.12.1
+mypy>=1.11.2
 types-beautifulsoup4
 types-cachetools
 types-croniter

+ 1 - 1
tests/tools/mypy_helpers/test_plugin.py

@@ -68,7 +68,7 @@ with transaction.atomic():
     expected = """\
 <string>:4: error: All overload variants of "atomic" require at least one argument  [call-overload]
 <string>:4: note: Possible overload variants:
-<string>:4: note:     def [_C: Callable[..., Any]] atomic(using: _C) -> _C
+<string>:4: note:     def [_C] atomic(using: _C) -> _C
 <string>:4: note:     def atomic(using: str, savepoint: bool = ..., durable: bool = ...) -> Atomic
 Found 1 error in 1 file (checked 1 source file)
 """