-
Notifications
You must be signed in to change notification settings - Fork 3k
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 mypy annotations to pip._internal.compat #5945
Conversation
489e4f1
to
053ebb0
Compare
053ebb0
to
a684493
Compare
src/pip/_internal/utils/compat.py
Outdated
@@ -210,13 +224,15 @@ def samefile(file1, file2): | |||
|
|||
if hasattr(shutil, 'get_terminal_size'): | |||
def get_terminal_size(): | |||
# type: () -> Tuple |
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 can be:
# type: () -> Tuple | |
# type: () -> Tuple[int, int] |
src/pip/_internal/utils/compat.py
Outdated
else: | ||
def get_terminal_size(): | ||
# type: () -> Tuple |
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 can be:
# type: () -> Tuple | |
# type: () -> Tuple[int, int] |
Hey @cytolentino! Thanks for all the work toward this! :) Could you please address the two minor improvements with the annotations in the PR? |
a684493
to
ecf90d4
Compare
No problem and sorry for the late response! Have just added in the [int, int] for those Tuples :) |
Thanks @cytolentino! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Add typing to pip._internal.compat as part of #4748