Skip to content
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

Merged
merged 1 commit into from
Nov 6, 2018

Conversation

cytolentino
Copy link
Contributor

Add typing to pip._internal.compat as part of #4748

@cjerdonek cjerdonek added the skip news Does not need a NEWS file entry (eg: trivial changes) label Oct 27, 2018
@cytolentino cytolentino changed the title Add typing to compat.py Add mypy annotations to pip._internal.compat Oct 27, 2018
@@ -210,13 +224,15 @@ def samefile(file1, file2):

if hasattr(shutil, 'get_terminal_size'):
def get_terminal_size():
# type: () -> Tuple
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be:

Suggested change
# type: () -> Tuple
# type: () -> Tuple[int, int]

else:
def get_terminal_size():
# type: () -> Tuple
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be:

Suggested change
# type: () -> Tuple
# type: () -> Tuple[int, int]

@pradyunsg
Copy link
Member

pradyunsg commented Nov 4, 2018

Hey @cytolentino! Thanks for all the work toward this! :)

Could you please address the two minor improvements with the annotations in the PR?

@cytolentino
Copy link
Contributor Author

No problem and sorry for the late response! Have just added in the [int, int] for those Tuples :)

@pradyunsg pradyunsg merged commit 63f92ea into pypa:master Nov 6, 2018
@pradyunsg
Copy link
Member

Thanks @cytolentino!

@cytolentino cytolentino deleted the compat-typing branch November 6, 2018 11:59
@lock
Copy link

lock bot commented May 31, 2019

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.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label May 31, 2019
@lock lock bot locked as resolved and limited conversation to collaborators May 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants