Remove unused flatten_literal_params function#2989
Merged
Lulalaby merged 2 commits intocleanup/39-removal-314-preparefrom Nov 2, 2025
Merged
Remove unused flatten_literal_params function#2989Lulalaby merged 2 commits intocleanup/39-removal-314-preparefrom
Lulalaby merged 2 commits intocleanup/39-removal-314-preparefrom
Conversation
|
Thanks for opening this pull request! This pull request can be checked-out with: git fetch origin pull/2989/head:pr-2989
git checkout pr-2989This pull request can be installed with: pip install git+https://github.com/Pycord-Development/pycord@refs/pull/2989/head |
Co-authored-by: Lulalaby <14029133+Lulalaby@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Address feedback on 3.9 cleanup for 3.14 preparation
Remove unused flatten_literal_params function
Nov 2, 2025
5ddd192
into
cleanup/39-removal-314-prepare
26 of 50 checks passed
Lulalaby
added a commit
that referenced
this pull request
Nov 2, 2025
* Initial plan * Remove unused flatten_literal_params function Co-authored-by: Lulalaby <14029133+Lulalaby@users.noreply.github.com> --------- Co-Authored-By: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-Authored-By: Lulalaby <14029133+Lulalaby@users.noreply.github.com>
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.
The
flatten_literal_paramsfunction indiscord/utils.pybecame dead code after removing Python < 3.10 compatibility. It was previously called conditionally inevaluate_annotationto flatten nested Literal types on older Python versions:Changes
flatten_literal_paramsfunction (11 lines) fromdiscord/utils.py✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.