Skip to content

Add typing annotations #138

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

Merged
merged 8 commits into from
Nov 12, 2022
Merged

Add typing annotations #138

merged 8 commits into from
Nov 12, 2022

Conversation

cdleonard
Copy link
Contributor

This adds typing annotations to the point that mypy passes with "disallow_untyped_calls=true".

…eam_vagrant_command

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Since python2 is no longer supported maybe this could be removed
entirely instead.

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Raising an explicit exception instead of concatenating with None makes
type checkers happy.

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
This is slightly faster and helps type checkers

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
@konstruktoid
Copy link
Collaborator

thanks @cdleonard!

@konstruktoid konstruktoid merged commit 66c961f into pycontribs:main Nov 12, 2022
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