Skip to content

Commit

Permalink
Adding type annotations to pip._internal.utils.glibc (#5956)
Browse files Browse the repository at this point in the history
* Added type annotations

* to satsify flake8 E402

* Update src/pip/_internal/utils/glibc.py

Co-Authored-By: atse <atse@users.noreply.github.com>
  • Loading branch information
atse authored and pradyunsg committed Nov 6, 2018
1 parent 523a3d0 commit aa42f14
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file.
2 changes: 1 addition & 1 deletion src/pip/_internal/utils/glibc.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def check_glibc_version(version_str, required_major, minimum_minor):

def have_compatible_glibc(required_major, minimum_minor):
# type: (int, int) -> bool
version_str = glibc_version_string()
version_str = glibc_version_string() # type: Optional[str]
if version_str is None:
return False
return check_glibc_version(version_str, required_major, minimum_minor)
Expand Down

0 comments on commit aa42f14

Please sign in to comment.