Skip to content

Issue 132 - Setup DataModel As Context Manager For Reader Cleanup.#133

Draft
gauppj1 wants to merge 1 commit intovandeplaslab:mainfrom
gauppj1:issue-132-threads-and-file-handles
Draft

Issue 132 - Setup DataModel As Context Manager For Reader Cleanup.#133
gauppj1 wants to merge 1 commit intovandeplaslab:mainfrom
gauppj1:issue-132-threads-and-file-handles

Conversation

@gauppj1
Copy link
Copy Markdown

@gauppj1 gauppj1 commented Feb 3, 2026

No description provided.

"""Close resources."""
self.close()

def __enter__(self) -> None:
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Todo - I know there's a typing approach that allows the class' type to be referenced within the class. Futures?

Minor - del and exit do double duty, could check for closed. exit returns bool or none?

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.

1 participant