Skip to content

Commit a1fa850

Browse files
committed
update type of FetchInfo.refresh() to use Literal
1 parent 18b75d9 commit a1fa850

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

git/remote.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
from typing import Any, Optional, Set, TYPE_CHECKING, Union
4040

41-
from git.types import PathLike
41+
from git.types import PathLike, Literal
4242

4343
if TYPE_CHECKING:
4444
from git.repo.base import Repo
@@ -232,7 +232,7 @@ class FetchInfo(object):
232232
}
233233

234234
@classmethod
235-
def refresh(cls) -> bool:
235+
def refresh(cls) -> Literal[True]:
236236
"""This gets called by the refresh function (see the top level
237237
__init__).
238238
"""

0 commit comments

Comments
 (0)