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 ClemoryReadOnlyView. #545

Merged
merged 6 commits into from
Jan 14, 2025
Merged

Add ClemoryReadOnlyView. #545

merged 6 commits into from
Jan 14, 2025

Conversation

ltfish
Copy link
Member

@ltfish ltfish commented Jan 13, 2025

No description provided.

@ltfish ltfish requested a review from rhelmot January 13, 2025 22:27
@ltfish ltfish self-assigned this Jan 13, 2025
def memory_ro_view(self) -> ClemoryReadOnlyView | None:
if self._memory is None:
raise ValueError("Cannot access memory_ro_view before loading is complete")
return self._memory_ro_view
Copy link
Member

Choose a reason for hiding this comment

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

this is gonna be a type error - should be if self._memory_ro_view is not None

Copy link
Member Author

Choose a reason for hiding this comment

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

It’s actually intended - I’ll add a comment to explain.

@ltfish ltfish merged commit 72c490a into master Jan 14, 2025
18 checks passed
@ltfish ltfish deleted the feat/clemory_readonly_view branch January 14, 2025 07:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants