summaryrefslogtreecommitdiff
path: root/git/diff.py
diff options
context:
space:
mode:
authorYobmod <yobmod@gmail.com>2021-07-06 15:01:15 +0100
committerYobmod <yobmod@gmail.com>2021-07-06 15:01:15 +0100
commit1bcccd55e78d1412903c2af59ccc895cca85e153 (patch)
tree4aabbbb28a8502cced55cfe53a6095d20215cae5 /git/diff.py
parent35783557c418921641be47f95e12c80d50b20d22 (diff)
downloadgitpython-1bcccd55e78d1412903c2af59ccc895cca85e153.tar.gz
Fix Literal Typeguards
Diffstat (limited to 'git/diff.py')
-rw-r--r--git/diff.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git/diff.py b/git/diff.py
index f07bd93a..611194a8 100644
--- a/git/diff.py
+++ b/git/diff.py
@@ -28,7 +28,7 @@ Lit_change_type = Literal['A', 'D', 'M', 'R', 'T']
def is_change_type(inp: str) -> TypeGuard[Lit_change_type]:
- return inp in Lit_change_type.__args__ # type: ignore
+ return inp in ('A', 'D', 'M', 'R', 'T')
# ------------------------------------------------------------------------