Skip to content

Commit aec95fb

Browse files
committed
sync/git(style[GitRemoteRefNotFound]): Add explicit _message type annotation
why: Project style favors explicit class-level annotations over inferred instance attributes. what: - Add `_message: str` annotation to GitRemoteRefNotFound class body
1 parent afa0154 commit aec95fb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/libvcs/sync/git.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ def __init__(self, *args: object) -> None:
7171
class GitRemoteRefNotFound(exc.CommandError):
7272
"""Raised when a git remote ref (tag, branch) could not be found."""
7373

74+
_message: str
75+
7476
def __init__(self, git_tag: str, ref_output: str, *args: object) -> None:
7577
self._message = (
7678
f"Could not fetch remote in refs/remotes/{git_tag}. Output: {ref_output}"

0 commit comments

Comments
 (0)