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

Feat: improve cached method invocations #424

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

sanjayankur31
Copy link
Member

No description provided.

This is required because all the arguments of functions that use caching
must be hashable. Now, the user should see the required type for the
`axes_pos` argument is a tuple, but if they miss that and provide a
list, they'll get a `not hashable` error, which isn't the most clear.

So, we help the user out by casting a list into a tuple where possible.
Now that we have quite a performant visualiser, we can default to
detailed rather than constant.
@sanjayankur31 sanjayankur31 merged commit be61e1e into development Sep 10, 2024
7 checks passed
@sanjayankur31 sanjayankur31 deleted the feat-improve-cached-method-invocations branch September 10, 2024 11:45
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.

Cached functions: cast arguments to hashable types before invocation
1 participant