Skip to content

Commit fcdd9ea

Browse files
Correct typing for Commit.get_comments() (PyGithub#1765)
Commit.get_comments() returns a PaginatedList of CommitComment instances, not commits. Co-Authored-By: Raju Subramanian <[email protected]>
1 parent d159425 commit fcdd9ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

github/Commit.pyi

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class Commit(CompletableGithubObject):
4242
@property
4343
def files(self) -> List[File]: ...
4444
def get_combined_status(self) -> CommitCombinedStatus: ...
45-
def get_comments(self) -> PaginatedList[GitCommit]: ...
45+
def get_comments(self) -> PaginatedList[CommitComment]: ...
4646
def get_statuses(self) -> PaginatedList[CommitStatus]: ...
4747
def get_check_runs(
4848
self,

0 commit comments

Comments
 (0)