summaryrefslogtreecommitdiff
path: root/git/remote.py
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-05-03 16:05:09 +0100
committeryobmod <yobmod@gmail.com>2021-05-03 16:05:09 +0100
commita1fa8506d177fa49552ffa84527c35d32f193abe (patch)
treecf7276a3df6756b57b3e82afb7c81a90ad968a16 /git/remote.py
parent18b75d9e63f513e972cbc09c06b040bcdb15aa05 (diff)
downloadgitpython-a1fa8506d177fa49552ffa84527c35d32f193abe.tar.gz
update type of FetchInfo.refresh() to use Literal
Diffstat (limited to 'git/remote.py')
-rw-r--r--git/remote.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/git/remote.py b/git/remote.py
index 20b5a551..7d6c0f6f 100644
--- a/git/remote.py
+++ b/git/remote.py
@@ -38,7 +38,7 @@ from .refs import (
from typing import Any, Optional, Set, TYPE_CHECKING, Union
-from git.types import PathLike
+from git.types import PathLike, Literal
if TYPE_CHECKING:
from git.repo.base import Repo
@@ -232,7 +232,7 @@ class FetchInfo(object):
}
@classmethod
- def refresh(cls) -> bool:
+ def refresh(cls) -> Literal[True]:
"""This gets called by the refresh function (see the top level
__init__).
"""