Skip to content

fix: 🐛 Fix ValueError when using Flag #2759

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 5, 2025

Conversation

Paillat-dev
Copy link
Contributor

@Paillat-dev Paillat-dev commented Apr 1, 2025

Summary

See also my comment on #2443 .

The issue was that a dataclasses.field object could not be reused and caused unhelpful TypeErrors.

This, or something fixing this issue should ideally be merged before #2443 is merged, and then master merged into #2443 .

Information

  • This PR fixes an issue.
    fixes: TypeError when using Flag with python 3.11+ #2758
  • 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.

@github-project-automation github-project-automation bot moved this to In Progress in Pycord Releases Apr 1, 2025
@Lulalaby Lulalaby added this to the v2.7 milestone Apr 1, 2025
@Paillat-dev Paillat-dev requested a review from plun1331 May 9, 2025 19:35
VincentRPS
VincentRPS previously approved these changes May 22, 2025
Signed-off-by: Dorukyum <[email protected]>
@Dorukyum Dorukyum removed request for plun1331 and BobDotCom June 5, 2025 15:44
@Dorukyum Dorukyum merged commit ad3d2a8 into Pycord-Development:master Jun 5, 2025
28 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Pycord Releases Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

TypeError when using Flag with python 3.11+
5 participants