Skip to content

Conversation

@IAmTomahawkx
Copy link
Member

@IAmTomahawkx IAmTomahawkx commented Sep 4, 2023

Pull request summary

This PR updates the ext.commands argument parser to add support for the following:

  • typing.Optional[T] / T | None
  • typing.Union[T, TT] / T | TT
  • typing.Annotated[T, func]

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
    • I have updated the changelog with a quick recap of my changes.
  • 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, ...)

@chillymosh
Copy link
Collaborator

LGTM

@IAmTomahawkx IAmTomahawkx merged commit 4ae7f4a into master Sep 19, 2023
@IAmTomahawkx IAmTomahawkx deleted the feature/union_parsing branch September 19, 2023 05:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2.0 TwitchIO 2.0 EXT: commands New Feature Implements new features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants