diff options
author | yobmod <yobmod@gmail.com> | 2021-02-28 21:16:14 +0000 |
---|---|---|
committer | yobmod <yobmod@gmail.com> | 2021-02-28 21:16:14 +0000 |
commit | 5b0028e1e75e1ee0eea63ba78cb3160d49c1f3a3 (patch) | |
tree | 4c9db7ee06dd81d31c35be9bf77bb97f130ac685 /git/config.py | |
parent | ad4079dde47ce721e7652f56a81a28063052a166 (diff) | |
download | gitpython-5b0028e1e75e1ee0eea63ba78cb3160d49c1f3a3.tar.gz |
start add types to util.py
Diffstat (limited to 'git/config.py')
-rw-r--r-- | git/config.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/git/config.py b/git/config.py index 9f09efe2..ffbbfab4 100644 --- a/git/config.py +++ b/git/config.py @@ -16,6 +16,8 @@ import re import fnmatch from collections import OrderedDict +from typing_extensions import Literal + from git.compat import ( defenc, force_text, @@ -194,7 +196,7 @@ class _OMD(OrderedDict): return [(k, self.getall(k)) for k in self] -def get_config_path(config_level): +def get_config_path(config_level: Literal['system','global','user','repository']) -> str: # we do not support an absolute path of the gitconfig on windows , # use the global config instead |