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
--strict-equality too strict in iteratively visited code #19328
This could be easily fixed by letting the IterationErrorWatcher also handle COMPARISON_OVERLAP errors (which would already be an improvement over the current handling of functions with constrained type variables of just turning off --strict-equality temporarily). However, IterationErrorWatcher would need some adjustments to not accidentally filter out errors with slightly different texts, like in this case:
Ideally, Mypy would only emit the last report (with A | B), which could eventually be implemented similarly to what is suggested in #19324 for reveal_type.
FYI: #20294 looks similar to this and is probably related, but I reported it separately since it seems to only occur in some specific conditions that aren't present in the reproducer above.
Activity
gschaffner commentedon Nov 24, 2025
FYI: #20294 looks similar to this and is probably related, but I reported it separately since it seems to only occur in some specific conditions that aren't present in the reproducer above.
Fix `--strict-equality` for iteratively visited code (python#19635)