Skip to content

Commit f2540db

Browse files
authored
Deprecate Reaction.delete (#3435)
As discussed in #3434 . The endpoint no longer exists in public GitHub.
1 parent 19e1c50 commit f2540db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

github/Reaction.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
from datetime import datetime
4545
from typing import TYPE_CHECKING, Any
4646

47+
from typing_extensions import deprecated
48+
4749
import github.Consts
4850
import github.NamedUser
4951
import github.Organization
@@ -96,6 +98,9 @@ def node_id(self) -> str:
9698
def user(self) -> NamedUser:
9799
return self._user.value
98100

101+
@deprecated(
102+
"Deprecated, use IssueComment.delete_reaction, PullRequestComment.delete_reaction, CommitComment.delete_reaction or Issue.delete_reaction"
103+
)
99104
def delete(self) -> None:
100105
"""
101106
:calls: `DELETE /reactions/{id} <https://docs.github.com/en/rest/reference/reactions#delete-a-reaction-legacy>`_

0 commit comments

Comments
 (0)