← 返回首页
Remove old commented-out flagKeyLiteral assertions in git.remote · gitpython-developers/GitPython@b8bab43 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit b8bab43

Browse files
committed
Remove old commented-out flagKeyLiteral assertions in git.remote
1 parent 2053a3d commit b8bab43

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

‎git/remote.py‎

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,6 @@
5050

5151
flagKeyLiteral = Literal[" ", "!", "+", "-", "*", "=", "t", "?"]
5252

53-
# def is_flagKeyLiteral(inp: str) -> TypeGuard[flagKeyLiteral]:
54-
# return inp in [' ', '!', '+', '-', '=', '*', 't', '?']
55-
56-
5753
# -------------------------------------------------------------
5854

5955
_logger = logging.getLogger(__name__)
@@ -415,7 +411,6 @@ def _from_line(cls, repo: "Repo", line: str, fetch_line: str) -> "FetchInfo":
415411
remote_local_ref_str,
416412
note,
417413
) = match.groups()
418-
# assert is_flagKeyLiteral(control_character), f"{control_character}"
419414
control_character = cast(flagKeyLiteral, control_character)
420415
try:
421416
_new_hex_sha, _fetch_operation, fetch_note = fetch_line.split("\t")

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.