From 08b72b48af202b6683adcd88b2e2b7adb7f68470 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Fri, 2 Oct 2020 15:13:13 +1000 Subject: [PATCH] Correct type hint for InputGitTreeElement.sha InputGitTreeElement.sha was previously updated to accept None to allow files to be deleted, but the type hint was not updated. Fixes #1707 --- github/InputGitTreeElement.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/InputGitTreeElement.pyi b/github/InputGitTreeElement.pyi index 2315a2c3..ad621e23 100644 --- a/github/InputGitTreeElement.pyi +++ b/github/InputGitTreeElement.pyi @@ -9,7 +9,7 @@ class InputGitTreeElement: mode: str, type: str, content: Union[str, _NotSetType] = ..., - sha: Union[str, _NotSetType] = ..., + sha: Union[str, _NotSetType, None] = ..., ) -> None: ... @property def _identity(self) -> Dict[str, str]: ...