v0.6.3
- fixed
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.
Contributors: @nkvuong