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

Fixes for memory #2

Merged
merged 3 commits into from
Sep 18, 2024
Merged

Fixes for memory #2

merged 3 commits into from
Sep 18, 2024

Conversation

yorickvP
Copy link
Contributor

@mem.cache(ignore=['x'])
def hello(x):
    return 1

@phi-friday
Copy link
Owner

Thanks for the PR.
The docstring says it returns a MemorizedFunc object, so I thought it did, but it doesn't.

But the PR is not passing through the static analyzer.
Could you please fix it so that I don't have the problem when I use uv run poe check?

@yorickvP
Copy link
Contributor Author

Should be fixed!

@phi-friday phi-friday merged commit bbeb6ce into phi-friday:main Sep 18, 2024
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.

MemorizedFunc.__call__ should return _T instead of MemorizedResult[_T]
2 participants