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

live: Add __enter__ and __exit__. #354

Merged
merged 1 commit into from
Nov 4, 2022
Merged

live: Add __enter__ and __exit__. #354

merged 1 commit into from
Nov 4, 2022

Conversation

daavoo
Copy link
Contributor

@daavoo daavoo commented Nov 3, 2022

Wait for #353

@daavoo daavoo requested a review from dberenbaum November 3, 2022 11:51
@dberenbaum dberenbaum mentioned this pull request Nov 3, 2022
13 tasks
Call `make_summary` and `make_report` on `__exit__`.
@daavoo daavoo marked this pull request as ready for review November 4, 2022 10:51
@codecov-commenter
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (1.0@f985113). Click here to learn what that means.
Patch has no changes to coverable lines.

Additional details and impacted files
@@          Coverage Diff           @@
##             1.0     #354   +/-   ##
======================================
  Coverage       ?   93.33%           
======================================
  Files          ?       36           
  Lines          ?     1711           
  Branches       ?      147           
======================================
  Hits           ?     1597           
  Misses         ?       90           
  Partials       ?       24           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@daavoo daavoo merged this pull request into 1.0 Nov 4, 2022
@daavoo daavoo deleted the context-manager branch November 4, 2022 13:29
daavoo added a commit that referenced this pull request Nov 4, 2022
Call `make_summary` and `make_report` on `__exit__`.
daavoo added a commit that referenced this pull request Nov 4, 2022
Call `make_summary` and `make_report` on `__exit__`.
Comment on lines +266 to +267
def __exit__(self, exc_type, exc_val, exc_tb):
self.end()
Copy link
Collaborator

@dberenbaum dberenbaum Nov 4, 2022

Choose a reason for hiding this comment

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

Minor follow-up: let's either document end() or get rid of it and move the logic here. What do you think @daavoo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I slightly prefer getting rid of end() since I'm not sure it's worth adding to docs, but no strong preference

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.

3 participants