Skip to content

refactor(utils): simplify get()#3283

Open
vmphase wants to merge 2 commits into
Pycord-Development:masterfrom
vmphase:refactor/utils-get
Open

refactor(utils): simplify get()#3283
vmphase wants to merge 2 commits into
Pycord-Development:masterfrom
vmphase:refactor/utils-get

Conversation

@vmphase

@vmphase vmphase commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Simplifies utils.get() by removing pointless "optimizations" used in old python versions.

Information

  • 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

  • I have searched the open pull requests for duplicates.
  • 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.
  • I have updated the changelog to include these changes.
  • AI Usage has been disclosed.
    • If AI has been used, I understand fully what the code does

@vmphase vmphase requested review from a team, Icebluewolf, JustaSqu1d and Lumabots June 21, 2026 16:48
@vmphase vmphase requested a review from a team as a code owner June 21, 2026 16:48
@vmphase vmphase requested review from Lulalaby and removed request for a team June 21, 2026 16:48
@github-project-automation github-project-automation Bot moved this to Todo in Pycord Jun 21, 2026
@pycord-app

pycord-app Bot commented Jun 21, 2026

Copy link
Copy Markdown

Thanks for opening this pull request!
Please make sure you have read the Contributing Guidelines and Code of Conduct.

This pull request can be checked-out with:

git fetch origin pull/3283/head:pr-3283
git checkout pr-3283

This pull request can be installed with:

pip install git+https://github.com/Pycord-Development/pycord@refs/pull/3283/head

@Paillat-dev Paillat-dev changed the title refactor(utils): simplify get() refactor(utils): simplify get() Jun 21, 2026
@Paillat-dev

Copy link
Copy Markdown
Member

Feel free to add a test or two for this now that you're here

@vmphase vmphase requested a review from a team as a code owner June 21, 2026 17:11
@vmphase

vmphase commented Jun 21, 2026

Copy link
Copy Markdown
Contributor Author

Feel free to add a test or two for this now that you're here

Done

@JustaSqu1d JustaSqu1d added the hold: changelog This pull request is missing a changelog entry label Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Todo

Development

Successfully merging this pull request may close these issues.

3 participants