diff options
author | Yobmod <yobmod@gmail.com> | 2021-08-02 14:00:33 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-08-02 14:00:33 +0100 |
commit | 2163322ef62fa97573ac94298261161fd9721993 (patch) | |
tree | 2eb3a713664a8d5e37a962141fcfdf1ecbca75f0 /git/util.py | |
parent | c878771e3a31c983a0c3468396ed33a532f87e98 (diff) | |
download | gitpython-2163322ef62fa97573ac94298261161fd9721993.tar.gz |
increase mypy strictness (warn unused ignored)
Diffstat (limited to 'git/util.py')
-rw-r--r-- | git/util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git/util.py b/git/util.py index 8056804a..63060530 100644 --- a/git/util.py +++ b/git/util.py @@ -403,8 +403,8 @@ def expand_path(p: Union[None, PathLike], expand_vars: bool = True) -> Optional[ try: p = osp.expanduser(p) # type: ignore if expand_vars: - p = osp.expandvars(p) # type: ignore - return osp.normpath(osp.abspath(p)) # type: ignore + p = osp.expandvars(p) + return osp.normpath(osp.abspath(p)) except Exception: return None |