From fcdd9eae2f5fcfba38b1478da7a3c8febd3c2726 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Thu, 26 Nov 2020 16:32:17 +1100 Subject: [PATCH] Correct typing for Commit.get_comments() (#1765) Commit.get_comments() returns a PaginatedList of CommitComment instances, not commits. Co-Authored-By: Raju Subramanian --- github/Commit.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github/Commit.pyi b/github/Commit.pyi index a57ff6e2..f9fbdc1b 100644 --- a/github/Commit.pyi +++ b/github/Commit.pyi @@ -42,7 +42,7 @@ class Commit(CompletableGithubObject): @property def files(self) -> List[File]: ... def get_combined_status(self) -> CommitCombinedStatus: ... - def get_comments(self) -> PaginatedList[GitCommit]: ... + def get_comments(self) -> PaginatedList[CommitComment]: ... def get_statuses(self) -> PaginatedList[CommitStatus]: ... def get_check_runs( self,