Skip to content

Adding inital types to remote.py #1229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
May 7, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update type of FetchInfo.refresh() to use Literal
  • Loading branch information
Yobmod committed May 3, 2021
commit a1fa8506d177fa49552ffa84527c35d32f193abe
4 changes: 2 additions & 2 deletions git/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@

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
Expand Down Expand Up @@ -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__).
"""
Expand Down