Skip to content

Commit

Permalink
New style type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
uranusjr committed Feb 27, 2021
1 parent 09513b8 commit 826234e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pip/_internal/locations/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@
logger = logging.getLogger(__name__)


def _default_base(*, user):
# type: (bool) -> str
def _default_base(*, user: bool) -> str:
if user:
base = sysconfig.get_config_var("userbase")
else:
Expand All @@ -42,8 +41,7 @@ def _default_base(*, user):
return base


def _warn_if_mismatch(old, new, *, key):
# type: (pathlib.Path, pathlib.Path, str) -> bool
def _warn_if_mismatch(old: pathlib.Path, new: pathlib.Path, *, key: str) -> bool:
if old == new:
return False
issue_url = "https://github.com/pypa/pip/issues/9617"
Expand Down

0 comments on commit 826234e

Please sign in to comment.