diff options
author | Yobmod <yobmod@gmail.com> | 2021-03-16 22:08:20 +0000 |
---|---|---|
committer | Yobmod <yobmod@gmail.com> | 2021-03-16 22:08:20 +0000 |
commit | 5232c89de10872a6df6227c5dcea169bd1aa6550 (patch) | |
tree | dc23db6e4a360c9a36321050bed7d5f445b4922f /git/config.py | |
parent | 9562ae2e2436e052d31c40d5f9d3d0318f6c4575 (diff) | |
download | gitpython-5232c89de10872a6df6227c5dcea169bd1aa6550.tar.gz |
add types to git.__init__, compat, db, diff, exc, util
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..aadb0aac 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 |