summaryrefslogtreecommitdiff
path: root/git/config.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-02-28 21:16:14 +0000
committeryobmod <yobmod@gmail.com>2021-02-28 21:16:14 +0000
commit5b0028e1e75e1ee0eea63ba78cb3160d49c1f3a3 (patch)
tree4c9db7ee06dd81d31c35be9bf77bb97f130ac685 /git/config.py
parentad4079dde47ce721e7652f56a81a28063052a166 (diff)
downloadgitpython-5b0028e1e75e1ee0eea63ba78cb3160d49c1f3a3.tar.gz
start add types to util.py
Diffstat (limited to 'git/config.py')
-rw-r--r--git/config.py4
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