Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 829142d

Browse filesBrowse files
committed
Add __future__.annotations to cmd.py2
1 parent c3f3501 commit 829142d
Copy full SHA for 829142d

1 file changed

+3-3Lines changed: 3 additions & 3 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎git/repo/fun.py‎

Copy file name to clipboardExpand all lines: git/repo/fun.py
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def rev_parse(repo: 'Repo', rev: str) -> Union['Commit', 'Tag', 'Tree', 'Blob']:
233233
assert obj is not None
234234

235235
if ref is not None:
236-
obj = cast(Commit, ref.commit)
236+
obj = cast('Commit', ref.commit)
237237
# END handle ref
238238
# END initialize obj on first token
239239

@@ -347,8 +347,8 @@ def rev_parse(repo: 'Repo', rev: str) -> Union['Commit', 'Tag', 'Tree', 'Blob']:
347347
# END end handle tag
348348
except (IndexError, AttributeError) as e:
349349
raise BadName(
350-
"Invalid revision spec '%s' - not enough "
351-
"parent commits to reach '%s%i'" % (rev, token, num)) from e
350+
f"Invalid revision spec '{rev}' - not enough "
351+
f"parent commits to reach '{token}{int(num)}'") from e
352352
# END exception handling
353353
# END parse loop
354354

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.