django-stubs icon indicating copy to clipboard operation
django-stubs copied to clipboard

regression in 5.2.1 -- ResolverMatch is no longer iterable

Open asottile-sentry opened this issue 4 months ago • 2 comments

Bug report

regressed in #2635 cc @UnknownPlatypus

What's wrong

https://github.com/getsentry/sentry/blob/fdd78facb166e55f73854d39ff9b89d3df9ff62a/src/sentry/api/client.py#L54-L55

now getting:

src/sentry/api/client.py:55: error: "ResolverMatch" object is not iterable  [misc]
src/sentry/api/client.py:107: error: Cannot determine type of "callback"  [has-type]
src/sentry/api/client.py:107: error: Cannot determine type of "callback_args"  [has-type]
src/sentry/api/client.py:107: error: Cannot determine type of "callback_kwargs"  [has-type]

How is that should be

no errors

System information

  • OS:
  • python version: 3.13.1
  • django version: 5.2.1
  • mypy version: 1.15.0
  • django-stubs version: 5.2.1 (forked)
  • django-stubs-ext version: 5.2.1 (forked)

asottile-sentry avatar Jun 17 '25 21:06 asottile-sentry