You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bad-specialization false positive when using partial with a generic decorator #3329
This looks a lot like a new scipy-stubs error that popped up after upgrading to 0.64.0 (same with 0.64.1) in scipy/scipy-stubs#1589:
ERROR `float` is not assignable to upper bound `ABCPolyBase` of type variable `_PolyT` [bad-specialization]
--> tests/optimize/test_minimize_scalar.pyi:23:27
|
23 | res_poly = minimize_scalar(p)
| ^^^
|
Activity
rchen152 commentedon May 7, 2026
cc @stroxler - this looks like a bug with generic residuals
jorenham commentedon May 8, 2026
This looks a lot like a new scipy-stubs error that popped up after upgrading to 0.64.0 (same with 0.64.1) in scipy/scipy-stubs#1589:
🙈 ignore false positive pyrefly `bad-specialization` error (pyrefly-o…
🙈 ignore false positive pyrefly `bad-specialization` error (pyrefly-o…
jorenham commentedon Jul 14, 2026
Thanks @shobhitmehro !
Out of curiosity, was there a juicy primer diff for scipy-stubs, or does mypy_primer only run on public PRs or something?
Support generic targets
Support generic targets