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

Partially restore recursive forwarding in mappers #466

Merged
merged 2 commits into from
Nov 1, 2023

Conversation

majosm
Copy link
Collaborator

@majosm majosm commented Oct 31, 2023

Partially undoes #446 by restoring __call__s that forward to rec. Using __call__ = rec is wrong, because it doesn't pick up versions of rec defined by subclasses.

Doesn't appear to have much impact on recursion depth post-#448.

"__call__ = rec" is wrong, doesn't work if subclass overrides rec
@inducer inducer enabled auto-merge (rebase) October 31, 2023 19:32
@inducer
Copy link
Owner

inducer commented Oct 31, 2023

Thx!

@inducer
Copy link
Owner

inducer commented Oct 31, 2023

The failures are a consequence of inducer/ci-support@1475971, which in turn appeared because nanobind does not allow --editable installs on Python 3.12. 😱

I don't totally understand why pytest is unhappy, TBH.

@inducer
Copy link
Owner

inducer commented Oct 31, 2023

Nvm, I guess I do. It has two ways to import, e.g. pytato.utils, and it is grouchy about the ambiguity.

@inducer
Copy link
Owner

inducer commented Oct 31, 2023

inducer/ci-support@499226c might help, rerunning

@inducer
Copy link
Owner

inducer commented Nov 1, 2023

Nvm, I was confused. I think adding back the --editable locally is probably easiest.

@inducer inducer merged commit dea2373 into inducer:main Nov 1, 2023
9 checks passed
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.

2 participants