You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to have document returned values of functions in some cases, without repeating the signature, and I am not quite sure how to do that with DocStringExtensions.
By the way that the interpolation works it just can't behave like you're wanting it to with the return written on the outside. It would need to be some kind of arg to the abbreviation itself to end up in the code block that is generated. It's a feature worth adding probably, not sure exactly what it'll look like though.
I have to admit that I still don't understand why there can be multiple lines for "$SIGNATURES", ie why it invokes methodgroups.
It did it since it might be applied to a method with optional args, which would give two or more method objects in the list. An additional feature of signatures abbrv might be to condense the signatures into a single one that uses the common [, optional_arg] syntax that people use.
Activity
MichaelHatherly commentedon Oct 10, 2026
By the way that the interpolation works it just can't behave like you're wanting it to with the return written on the outside. It would need to be some kind of arg to the abbreviation itself to end up in the code block that is generated. It's a feature worth adding probably, not sure exactly what it'll look like though.
tpapp commentedon Oct 12, 2026
Just brainstorming:
MethodSignaturecould take an argument that inserts markdown after the signature.But having multiple lines would be cumbersome.
I have to admit that I still don't understand why there can be multiple lines for
"$SIGNATURES", ie why it invokesmethodgroups.MichaelHatherly commentedon Oct 13, 2026
It did it since it might be applied to a method with optional args, which would give two or more method objects in the list. An additional feature of signatures abbrv might be to condense the signatures into a single one that uses the common
[, optional_arg]syntax that people use.feat(signatures): add a returns option to signatures and method lists