diff options
| author | Yobmod <yobmod@gmail.com> | 2021-07-05 13:55:48 +0100 |
|---|---|---|
| committer | Yobmod <yobmod@gmail.com> | 2021-07-05 13:55:48 +0100 |
| commit | 9400246e9255cc8aef83fe950cf200724790d431 (patch) | |
| tree | 55c9af95828cab393e97c1ce999bd91518f176dc /git/objects/submodule | |
| parent | 16f0607ed29f20c09e89f2cacc0e28e982309d60 (diff) | |
| download | gitpython-9400246e9255cc8aef83fe950cf200724790d431.tar.gz | |
Fix IndexFile forwardref
Diffstat (limited to 'git/objects/submodule')
| -rw-r--r-- | git/objects/submodule/base.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/git/objects/submodule/base.py b/git/objects/submodule/base.py index 6824528d..25f88b37 100644 --- a/git/objects/submodule/base.py +++ b/git/objects/submodule/base.py @@ -7,8 +7,6 @@ import stat from unittest import SkipTest import uuid -from git import IndexFile - import git from git.cmd import Git from git.compat import ( @@ -58,6 +56,7 @@ from git.types import Commit_ish, PathLike if TYPE_CHECKING: from git.repo import Repo + from git.index import IndexFile # ----------------------------------------------------------------------------- @@ -1012,7 +1011,7 @@ class Submodule(IndexObject, TraversableIterableObj): return self @unbare_repo - def config_writer(self, index: Union[IndexFile, None] = None, write: bool = True) -> SectionConstraint: + def config_writer(self, index: Union['IndexFile', None] = None, write: bool = True) -> SectionConstraint: """:return: a config writer instance allowing you to read and write the data belonging to this submodule into the .gitmodules file. |
