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

Transmogrify _dispatchable objects into functions #7298

Merged
merged 2 commits into from Feb 23, 2024

Conversation

eriknw
Copy link
Contributor

@eriknw eriknw commented Feb 15, 2024

_dispatchable objects don't look good in REPRs and they make it really awkward for type checkers. This PR uses argmap to transmogrify _dispatchable objects into functions. I hope to someday understand argmap.

@rossbar, this is as discussed in #7185 and the meeting today. Everything looks good in REPRs to me. This PR supercedes #7185.

CC @rlratzel

@eriknw
Copy link
Contributor Author

eriknw commented Feb 15, 2024

Oh my, those are fascinating test failures. Maybe I'll have a reason to understand argmap after all.

Copy link
Member

@MridulS MridulS left a comment

Choose a reason for hiding this comment

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

I'm not a 100% sure where this could break, but I'll go ahead and approve this. Maybe @rossbar has some thoughts here?

@dschult dschult merged commit eec4012 into networkx:main Feb 23, 2024
43 of 44 checks passed
@jarrodmillman jarrodmillman added this to the 3.3 milestone Feb 23, 2024
cvanelteren pushed a commit to cvanelteren/networkx that referenced this pull request Apr 22, 2024
* Transmogrify `_dispatchable` objects into functions

* fix?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

4 participants