Skip to content

Question: How to document methods that accept argument forwarding? #1571

Answered by lsegal
synthead asked this question in Q&A
Discussion options

You must be logged in to vote

The general approach here would be the same as the case where you have a *args or **kwargs method-- you would use @overload to define a synthesized method signature:

# @overload my_method(a, b)
#   @param a [String] the first parameter
#   @param b [Boolean] the second parameter
def my_method(...) = other(...)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lsegal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #1362 on September 03, 2024 08:31.