diff options
author | Tzu-ping Chung <uranusjr@gmail.com> | 2021-02-28 07:37:23 +0800 |
---|---|---|
committer | Tzu-ping Chung <uranusjr@gmail.com> | 2021-02-28 07:37:23 +0800 |
commit | 826234e3acf1406e855d69207b15caf17d541f6d (patch) | |
tree | 435c03edc9865b2702a81f92ff3b5aed83b90691 | |
parent | 09513b82da37c902198875718f6d1a64811e59c8 (diff) | |
download | pip-826234e3acf1406e855d69207b15caf17d541f6d.tar.gz |
New style type hints
-rw-r--r-- | src/pip/_internal/locations/__init__.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/pip/_internal/locations/__init__.py b/src/pip/_internal/locations/__init__.py index 688403724..580da8eae 100644 --- a/src/pip/_internal/locations/__init__.py +++ b/src/pip/_internal/locations/__init__.py @@ -32,8 +32,7 @@ __all__ = [ 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: @@ -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" |