Skip to content
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

fix: 🐛 Union type cannot be used in ctx. #2611

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Paillat-dev
Copy link
Contributor

@Paillat-dev Paillat-dev commented Oct 17, 2024

Summary

A command's ctx parameter could not be typed as a Union which was especially problematic when using bridge

Information

  • This PR fixes an issue.
    fixes: bridge.Context not a valid context typehint #2378
  • 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.

@Paillat-dev Paillat-dev requested a review from a team as a code owner October 17, 2024 11:45
@pullapprove4 pullapprove4 bot requested a review from Middledot October 17, 2024 11:45
@Paillat-dev Paillat-dev changed the title 🐛 Union type cannot be used in ctx. fix: 🐛 Union type cannot be used in ctx. Oct 17, 2024
@Paillat-dev Paillat-dev force-pushed the fix-ctx-union branch 2 times, most recently from 2332bc9 to 72e3a75 Compare October 17, 2024 12:00
@JustaSqu1d JustaSqu1d added priority: medium Medium Priority python Pull requests that update Python code labels Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bridge.Context not a valid context typehint
2 participants