Replies: 1 comment 2 replies
-
Hey @ISOR3X, good questions!
Honestly, not really. The first lines might be decorators spanning multiple lines. I guess you could pick the first line that starts with The best thing we could do is provide such functionality directly in Griffe. You can definitely open a feature request for that 😄
Right, we don't currently add extras to the JSON output. I'm open to supporting this, can you open a second feature request for this 🙂? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am working on documentation for a package and am trying out Griffe to see if I could use it.
I have an extension that adds the complete function signature as an extra so I don't have to completely construct it from the objects. Currently I do this with just
func.extra["signature"] = func.lines[0]
which would probably break easily, any suggestions on how I could do this better?Anyway, I noticed that when using
as_json
, even with the option full set to true, the extras are not exported. Is there a way to add them to the export?Beta Was this translation helpful? Give feedback.
All reactions