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 "tox -e static" for static type checking (Pyright) #1137

Merged
merged 2 commits into from
Jul 4, 2023

Conversation

benhoyt
Copy link
Contributor

@benhoyt benhoyt commented Jul 4, 2023

This is part of my work in canonical/operator#920. Notes:

Notes:
* Type checkers like the self.on["container"].pebble_ready syntax over
  the magic self.on.container_pebble_ready shorthand, so go with that.
* Unfortunately we need a "type: ignore" on the ops.main() call as
  main() is a special module+function due to canonical/operator#910.
* The "simple" charm will only work with ops>=2.4.1 due to
  canonical/operator#962. Will ship 2.4.1 imminently.
* I've changed the ops version pinning to 2.x (but 2.4 or higher).
@syu-w syu-w merged commit d244e61 into canonical:main Jul 4, 2023
26 checks passed
@benhoyt benhoyt deleted the init-pyright branch July 4, 2023 23:17
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