Skip to content

[mypyc] Fixing iteration over NamedTuple objects.#18254

Merged
hauntsaninja merged 1 commit into
python:masterfrom
advait-dixit:fix_iter_namedtuple
Dec 6, 2024
Merged

[mypyc] Fixing iteration over NamedTuple objects.#18254
hauntsaninja merged 1 commit into
python:masterfrom
advait-dixit:fix_iter_namedtuple

Conversation

@advait-dixit

Copy link
Copy Markdown
Contributor

Fixes mypyc/mypyc#1063.

Adding elif-blocks for getting RType of items in classes derived from NamedTuple.

@hauntsaninja hauntsaninja left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great!

@hauntsaninja
hauntsaninja merged commit 82de0d8 into python:master Dec 6, 2024
@advait-dixit
advait-dixit deleted the fix_iter_namedtuple branch December 6, 2024 18:43
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.

Mypyc raises AssertionError: Self`0 in NamedTuple subclass

2 participants