Skip to content

Add typing annotations#138

Merged
konstruktoid merged 8 commits intopycontribs:mainfrom
cdleonard:typing
Nov 12, 2022
Merged

Add typing annotations#138
konstruktoid merged 8 commits intopycontribs:mainfrom
cdleonard:typing

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