From a1fa8506d177fa49552ffa84527c35d32f193abe Mon Sep 17 00:00:00 2001 From: yobmod Date: Mon, 3 May 2021 16:05:09 +0100 Subject: update type of FetchInfo.refresh() to use Literal --- git/remote.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'git') 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__). """ -- cgit v1.2.1