Skip to content

Conversation

sterliakov
Copy link
Collaborator

Fixes #17021. Fixes #14519.

I'm not super fond of this ad-hoc attempt to recheck the definition, but this looks like the easiest way to preserve analyze_static_reference behaviour of never deferring.

@sterliakov
Copy link
Collaborator Author

@ilevkivskyi sorry for a second ping in a row - I hope you still remember this part well, am I missing any obvious/direct way to propagate such deferrals from inside?

This comment has been minimized.

@sterliakov sterliakov marked this pull request as draft September 7, 2025 03:04
Copy link
Contributor

github-actions bot commented Sep 7, 2025

Diff from mypy_primer, showing the effect of this PR on open source code:

sympy (https://github.com/sympy/sympy)
+ sympy/logic/boolalg.py:3526: error: Cannot determine type of "Nand"  [has-type]
+ sympy/logic/boolalg.py:3526: error: Cannot determine type of "Nor"  [has-type]
+ sympy/logic/boolalg.py:3526: error: Cannot determine type of "Not"  [has-type]
+ sympy/logic/boolalg.py:3526: error: Cannot determine type of "Xnor"  [has-type]

pandas (https://github.com/pandas-dev/pandas)
+ pandas/io/excel/_base.py:1551: error: Cannot determine type of "XlrdReader"  [has-type]
+ pandas/io/excel/_base.py:1554: error: Cannot determine type of "PyxlsbReader"  [has-type]
+ pandas/io/excel/_base.py:1555: error: Cannot determine type of "CalamineReader"  [has-type]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant