Skip to content

Commit e66b8f1

Browse files
committed
Fix old Commit_ish annotation in RootModule
This finishes the annotation fixup begun in 7328a00. (The temporary Old_commit_ish type is now ready to be removed.)
1 parent 1f03e7f commit e66b8f1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

git/objects/submodule/root.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
# This module is part of GitPython and is released under the
22
# 3-Clause BSD License: https://opensource.org/license/bsd-3-clause/
33

4+
import logging
5+
6+
import git
7+
from git.exc import InvalidGitRepositoryError
48
from .base import Submodule, UpdateProgress
59
from .util import find_first_remote_branch
6-
from git.exc import InvalidGitRepositoryError
7-
import git
8-
9-
import logging
1010

1111
# typing -------------------------------------------------------------------
1212

1313
from typing import TYPE_CHECKING, Union
1414

15-
from git.types import Old_commit_ish
15+
from git.types import Commit_ish
1616

1717
if TYPE_CHECKING:
1818
from git.repo import Repo
@@ -77,7 +77,7 @@ def _clear_cache(self) -> None:
7777

7878
def update( # type: ignore[override]
7979
self,
80-
previous_commit: Union[Old_commit_ish, None] = None,
80+
previous_commit: Union[Commit_ish, str, None] = None,
8181
recursive: bool = True,
8282
force_remove: bool = False,
8383
init: bool = True,

0 commit comments

Comments
 (0)