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
Thanks for the report @kaktus42. Even though we could consider it a new feature, the behavior doesn't match what the user can expect, so I'll mark this as a bug.
Here is how I see things could be rendered:
separated signatures: render all signatures, just like for functions
heading-signatures: render the implementation signature in the heading, then further code blocks for each overload. I'm open to other suggestions, if you have any!
This will bring rudimentary support for such cases. We have other issues in our backlog to improve support for overloads.
Description of the bug
When using
merge_init_into_class
, signature overloads (typing.overload) are not merged into the class' docs.To Reproduce
Example:
Expected behavior
The overload defs should also be rendered.
Environment information
griffe --debug-info # | xclip -selection clipboard
griffe
v1.5.1Additional context
The text was updated successfully, but these errors were encountered: