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

Added type hints to internals/utils #5932

Merged
merged 1 commit into from
Oct 30, 2018

Conversation

petr-tik
Copy link
Contributor

Found a potential bug i.e. missing return statement in check_path_owner. If
while loop falls through without returning,
return a defensive False

related to #4748

@petr-tik petr-tik changed the title Added type hints Added type hints to internals/utils Oct 27, 2018
Copy link
Member

@pradyunsg pradyunsg left a comment

Choose a reason for hiding this comment

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

Thanks for the PR!


def glibc_version_string():
# type: () -> str
Copy link
Member

Choose a reason for hiding this comment

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

This should be type: () -> Optional[str]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ha, missed it - you are right. In process of rebasing, will include.

@cjerdonek cjerdonek added the skip news Does not need a NEWS file entry (eg: trivial changes) label Oct 27, 2018
Found a potential bug i.e. missing return statement in check_path_owner. If
while loop falls through without returning,
return a defensive False

Added a trivial file as per the contributor guidelines

Make linter happy - ignore "unused" import
@petr-tik petr-tik force-pushed the no4748-add-type-hints-to-internals branch from d9f9786 to 55f6787 Compare October 27, 2018 14:41
@pradyunsg pradyunsg merged commit 5005769 into pypa:master Oct 30, 2018
@pradyunsg
Copy link
Member

Thanks @petr-tik! :)

@pradyunsg
Copy link
Member

@petr-tik Let us know you would like contribute more to pip and want any pointers. :)

@petr-tik
Copy link
Contributor Author

petr-tik commented Dec 2, 2018

Thanks again for the guidance

@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.

4 participants