Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix crash on recursive alias with an optional type #17350

Merged
merged 2 commits into from
Jun 9, 2024

Conversation

ilevkivskyi
Copy link
Member

Fixes #17132

Fix is trivial, we don't need that extra get_proper_type().

Copy link
Contributor

github-actions bot commented Jun 9, 2024

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

ibis (https://github.com/ibis-project/ibis)
- ibis/common/graph.py:464: error: Argument "filter" to "map" of "Node" has incompatible type "Callable[[Node], bool] | Pattern | _ClassInfo | None"; expected "Callable[[Node], bool] | None"  [arg-type]
+ ibis/common/graph.py:464: error: Argument "filter" to "map" of "Node" has incompatible type "FinderLike | None"; expected "Callable[[Node], bool] | None"  [arg-type]

@ilevkivskyi ilevkivskyi merged commit 428a035 into python:master Jun 9, 2024
18 checks passed
@ilevkivskyi ilevkivskyi deleted the fix-rec-opt branch June 9, 2024 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

INTERNAL ERROR: maximum semantic analysis iteration count reached on self-referential union
1 participant