Skip to content

Fix crash on recursive alias with an optional type#17350

Merged
ilevkivskyi merged 2 commits into
python:masterfrom
ilevkivskyi:fix-rec-opt
Jun 9, 2024
Merged

Fix crash on recursive alias with an optional type#17350
ilevkivskyi merged 2 commits into
python:masterfrom
ilevkivskyi:fix-rec-opt

Conversation

@ilevkivskyi

Copy link
Copy Markdown
Member

Fixes #17132

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

@github-actions

github-actions Bot commented Jun 9, 2024

Copy link
Copy Markdown
Contributor

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
@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