-
Notifications
You must be signed in to change notification settings - Fork 38
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
linters: set disallow_untyped_defs in mypy #350
Conversation
45ff414
to
5c08212
Compare
This forces type annotations for functions in craft_parts/.
SourceHandler._run() takes a List[str], so it's incorrect to pass a Path.
5c08212
to
0406a70
Compare
@cmatsuoka the second commit has test code that I had to update on account of typing fixes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything I've commented has been the rambling thoughts of someone new to the codebase, so take them for what they're worth there
@lengau the comments are much appreciated, thanks. Updated the PR based on your suggestions |
This forces type annotations for functions in craft_parts/.