diff options
author | Yobmod <yobmod@gmail.com> | 2021-07-05 12:31:00 +0100 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-07-05 12:31:00 +0100 |
commit | 16f0607ed29f20c09e89f2cacc0e28e982309d60 (patch) | |
tree | 1827bb53f17af0142e23530c20e49403dfc5b7ed /git/refs/symbolic.py | |
parent | d4a9eab9ddc64a18b33ac04a4224f347ccdc78de (diff) | |
download | gitpython-16f0607ed29f20c09e89f2cacc0e28e982309d60.tar.gz |
Improve typing of config_levels, add assert_never()
Diffstat (limited to 'git/refs/symbolic.py')
-rw-r--r-- | git/refs/symbolic.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/git/refs/symbolic.py b/git/refs/symbolic.py index ca0691d9..f0bd9316 100644 --- a/git/refs/symbolic.py +++ b/git/refs/symbolic.py @@ -1,3 +1,4 @@ +from git.types import PathLike import os from git.compat import defenc @@ -408,7 +409,7 @@ class SymbolicReference(object): return RefLog.entry_at(RefLog.path(self), index) @classmethod - def to_full_path(cls, path): + def to_full_path(cls, path) -> PathLike: """ :return: string with a full repository-relative path which can be used to initialize a Reference instance, for instance by using ``Reference.from_path``""" |