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.
Command.get_argument_type
bug withUnionType
(#110). In this release, theCommand.get_argument_type
method has been updated to include special handling forUnionType
, resolving a bug that caused the function to crash when encountering this type. The method now returns the string representation of the annotation if the argument is aUnionType
, providing more accurate and reliable results. To facilitate this, modifications were made using thetypes
module. Additionally, thefoo
function has a new optional argumentoptional_arg
of typestr
, with a default value ofNone
. This argument is passed to thesome
function in the assertion. ThePrompts
type has been added to thefoo
function signature, and an assertion has been added to verify ifprompts
is an instance ofPrompts
. Lastly, the default value of theaddress
argument has been changed from an empty string to "default", and the same changes have been applied to thetest_injects_prompts
test function.