From 1bcccd55e78d1412903c2af59ccc895cca85e153 Mon Sep 17 00:00:00 2001 From: Yobmod Date: Tue, 6 Jul 2021 15:01:15 +0100 Subject: Fix Literal Typeguards --- git/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'git/diff.py') 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') # ------------------------------------------------------------------------ -- cgit v1.2.1