-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TYPEDSIGNATURES gets confused with more than one type parameter #84
Comments
It's probably due to the assumption that DocStringExtensions.jl/src/abbreviations.jl Lines 382 to 391 in 9075207
I won't have time to dig into this deeper though, but would happily take a PR. |
@mortenpi I'm looking into this and will be happy to submit a PR. I do have a question though. I have the following file:
And I have this minimal example, and when I run it in DocStringExtensions, I get the following
I put DocStringExtensions.jl/src/abbreviations.jl Lines 367 to 371 in 9075207
Why does the If I don't use a generic typeof as the first argument, this works as expected.
|
I think I figured out the answer to part of my question
This returns
So this is generated by Julia. I'm still not sure if |
Okay, it's seems that it is not a bug, but intended. Sorry for spamming this thread. I'm still trying to figure out why the |
Thanks for tackling this @kdheepak! To answer your question about the type signature: yep, it's something that comes from Julia itself. It's created by the
The weirdness about the parametric signature, I believe, is a bug in
So, coming back to the original example, the |
Thanks for the comment! This is exactly what I wanted to know. 1) it is a bug with the signature function, and 2) how to generate the signature with the |
Hi,
documenting functions with more the one type parameter with TYPEDSIGNATURES leads to UnionAll error.
Here is the MWE:
The current workaround is of course to use SIGNATURES, but I like the possibility to generate as much information as possible from the code.
Jürgen
The text was updated successfully, but these errors were encountered: