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
refactor: add type hints in strings.py and file.py #1565
Conversation
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.
This looks like a good start, but I'd like to see type hints on every argument if possible. rather than just setting up the return type hint. e.g. is filename a str on line 14?
(I know, we haven't done this consistently elsewhere, but we're aiming for consistency that we'll be able to enforce, and this isn't quite there yet!)
I think this is looking pretty good. I'm approving the CI to double-check the function on all platforms before I do a review. (CI keeps waiting on approval because you're a new contributor.) |
Updating branch and re-running CI before merge. |
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.
Looks like one of the windows tests failed due to a network error, but this is good enough to merge. Thank you!
part of #1539