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

Add cache support for single numpy dtype like np.int32 #4667

Merged
merged 1 commit into from
Apr 19, 2023
Merged

Conversation

hoxbro
Copy link
Member

@hoxbro hoxbro commented Apr 19, 2023

Add more types for _hash_funcs related to single values of a numpy dtype. This will make the following possible:

import panel as pn

@pn.cache
def f(x):
    return None

f([np.int32(1)])

@philippjfr philippjfr merged commit f737839 into main Apr 19, 2023
@philippjfr philippjfr deleted the cache_round2 branch April 19, 2023 17:25
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.

None yet

2 participants