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

examples: Add type hints, use cancellation event, name MeasurementService consistently #372

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

bkeryan
Copy link
Collaborator

@bkeryan bkeryan commented Sep 8, 2023

What does this Pull Request accomplish?

examples:

  • Add missing type hints
  • Use an event for cancellation, rather than a callback that modifies nonlocal variables
  • Name the MeasurementService instance consistently

Why should this Pull Request be merged?

Demonstrate best practices.

What testing has been done?

Ran mypy on all affected examples.
Manually tested all affected examples (I think).
Ran pytest.

@github-actions
Copy link

github-actions bot commented Sep 8, 2023

Test Results

     12 files  ±0       12 suites  ±0   1m 58s ⏱️ +3s
   184 tests ±0     159 ✔️ ±0    25 💤 ±0  0 ±0 
2 196 runs  ±0  1 896 ✔️ ±0  300 💤 ±0  0 ±0 

Results for commit 6579e64. ± Comparison against base commit 92a2b97.

@bkeryan bkeryan merged commit f0800ec into main Sep 8, 2023
@bkeryan bkeryan deleted the users/bkeryan/example-cleanup branch September 8, 2023 19:32
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.

2 participants