I was just checking new update changes and I've noticed these small issues I fixed here in this PR.
What was fixed:
Removed duplicated methods in HTTPClient class (might be breaking change but I don't think so, these weren't used)
Fixed missed stacklevel parameter in warn_deprecated function call inside deprecated decorator in utils
Fixed typehint in ConnectionState._polls incorrectly specified as Guild instead of Poll
Fixed missing __slots__ attributes in RawReactionClearEmojiEvent class
Fixed missing __slots__ attributes in RawMessagePollVoteEvent class
Fixed default_sort_order variable type being int instead of typehinted SortOrder enum in ForumChannel class
I tested every fix, including checking type of default_sort_order variable.
If there's something wrong with duplicated method removals in HTTPClient class, I can revert these changes.
Information
[x] This PR fixes an issue.
[ ] This PR adds something new (e.g. new method or parameters).
[ ] This PR is a breaking change (e.g. methods or parameters removed/renamed).
[ ] This PR is not a code change (e.g. documentation, README, typehinting,
examples, ...).
Checklist
[x] I have searched the open pull requests for duplicates.
[x] If code changes were made then they have been tested.
[ ] I have updated the documentation to reflect the changes.
[ ] If type: ignore comments were used, a comment is also left explaining why.
[x] I have updated the changelog to include these changes.
Summary
I was just checking new update changes and I've noticed these small issues I fixed here in this PR.
What was fixed:
HTTPClient
class (might be breaking change but I don't think so, these weren't used)stacklevel
parameter inwarn_deprecated
function call insidedeprecated
decorator in utilsConnectionState._polls
incorrectly specified asGuild
instead ofPoll
__slots__
attributes inRawReactionClearEmojiEvent
class__slots__
attributes inRawMessagePollVoteEvent
classdefault_sort_order
variable type beingint
instead of typehintedSortOrder
enum inForumChannel
classI tested every fix, including checking type of
default_sort_order
variable. If there's something wrong with duplicated method removals inHTTPClient
class, I can revert these changes.Information
Checklist
type: ignore
comments were used, a comment is also left explaining why.