From efe68337c513c573dde8fbf58337bed2fa2ca39a Mon Sep 17 00:00:00 2001 From: yobmod Date: Sat, 8 May 2021 20:28:23 +0100 Subject: Add types to config.py CONFIG_LEVELS, MetaParserBuilder.__new__() .needs_values() .set_dirty_and_flush_changes() --- git/repo/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'git/repo/base.py') diff --git a/git/repo/base.py b/git/repo/base.py index 94c6e30b..ce5f6bd0 100644 --- a/git/repo/base.py +++ b/git/repo/base.py @@ -34,7 +34,7 @@ import gitdb # typing ------------------------------------------------------ -from git.types import TBD, PathLike, Literal +from git.types import TBD, PathLike, Lit_config_levels from typing import (Any, BinaryIO, Callable, Dict, Iterator, List, Mapping, Optional, TextIO, Tuple, Type, Union, @@ -45,7 +45,6 @@ if TYPE_CHECKING: # only needed for types from git.refs.symbolic import SymbolicReference from git.objects import TagObject, Blob, Tree # NOQA: F401 -Lit_config_levels = Literal['system', 'global', 'user', 'repository'] # ----------------------------------------------------------- -- cgit v1.2.1