I think I heard something like this before but I don’t remember. Is there a package/tool that generates and include function signatures in the doc string? E.g.
"""
@sig
Basically, add `x` and `y` together.
"""
add_these(x::Float64, y::Float64) = x + y
turning into something like:
"""
add_these(x::Float64, y::Float64)::Float64
Basically, add `x` and `y` together.
"""
add_these(x::Float64, y::Float64) = x + y
I saw that DocStringExtensions uses the methods function which brings all signatures. I do not know how to get the signature from the current method. Actually, I do not know how to get a handle for the current method being documented.