fix: Replace deprecated pkg_resources with importlib.metadata to clear DeprecationWarning#2392
Merged
Conversation
Lulalaby
enabled auto-merge (squash)
March 13, 2024 14:10
Lulalaby
previously approved these changes
Mar 13, 2024
Member
|
Should we have a changelog entry for this? |
Member
I don't think so because it doesn't affect the end-user? |
Member
It removes a deprecation warning that appears in their terminal |
JustaSqu1d
requested changes
Mar 15, 2024
JustaSqu1d
left a comment
Member
There was a problem hiding this comment.
Please add a changelog entry
Contributor
Author
|
alr, I'll get onto it soon |
auto-merge was automatically disabled
March 15, 2024 07:43
Head branch was pushed to by a user without write access
Contributor
Author
|
Done |
Lulalaby
reviewed
Mar 15, 2024
Signed-off-by: Lala Sabathil <[email protected]>
plun1331
previously approved these changes
Mar 15, 2024
plun1331
enabled auto-merge (squash)
March 15, 2024 14:52
JustaSqu1d
requested changes
Mar 15, 2024
auto-merge was automatically disabled
March 16, 2024 00:17
Head branch was pushed to by a user without write access
Co-authored-by: JustaSqu1d <[email protected]> Signed-off-by: Revnoplex <[email protected]>
plun1331
approved these changes
Mar 16, 2024
plun1331
enabled auto-merge (squash)
March 16, 2024 03:45
Lulalaby
disabled auto-merge
March 17, 2024 01:55
Lulalaby
approved these changes
Mar 17, 2024
mykolasolodukha
pushed a commit
to mykolasolodukha/pycord
that referenced
this pull request
Sep 17, 2024
…r DeprecationWarning (Pycord-Development#2392) Signed-off-by: Lala Sabathil <[email protected]> Signed-off-by: Revnoplex <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Lala Sabathil <[email protected]> Co-authored-by: JustaSqu1d <[email protected]> (cherry picked from commit 0c68e5f)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Replaced
pkg_resourceswithimportlib.metadataas favoured here. Hence replacingget_distribution()withversion().This clears the following deprecation warning:
Information
examples, ...).
Checklist
type: ignorecomments were used, a comment is also left explaining why.