Skip to content

Commit b8bab43

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

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Diff for: git/remote.py

-5
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)