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 have something similar to the following setup where I try to create a zero argument constructor for a parametric struct:
using DocStringExtensions
"""# struct definitionMy test struct with fields$(TYPEDFIELDS)"""struct MyStruct{T<:Number}
a::Tend"""# empty constructor. Call with$(SIGNATURES) or:$(TYPEDSIGNATURES)"""functionMyStruct{T}() where {T<:Number}
returnMyStruct{T}(one(T))
end
The constructed documentation look like this:
help?> MyStruct
search: MyStruct
struct definition
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡
My test struct with fields
• a::Number
────────────────────────────────────────
empty constructor. Call with
≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡≡MyStruct(a)
or:MyStruct(a::Number) -> MyStruct
Which does not reproduce the signature of the parametric constructor. Ideally, I would expect something like MyStruct{T}() for $SIGNATURES andMyStruct{T<:Number}() -> MyStruct for $TYPEDSIGNATURES.
(In the documenter build, the result of SIGNATURES and TYPEDSIGNATURES seems to just be empty, hence the empty in the title.)
The text was updated successfully, but these errors were encountered:
I have something similar to the following setup where I try to create a zero argument constructor for a parametric struct:
The constructed documentation look like this:
Which does not reproduce the signature of the parametric constructor. Ideally, I would expect something like
MyStruct{T}()
for$SIGNATURES
andMyStruct{T<:Number}() -> MyStruct
for$TYPEDSIGNATURES
.(In the documenter build, the result of
SIGNATURES
andTYPEDSIGNATURES
seems to just be empty, hence the empty in the title.)The text was updated successfully, but these errors were encountered: