Skip to content

Imports in __init__.py #188

Closed Answered by pawamoy
viktor40 asked this question in Q&A
Oct 8, 2024 · 1 comments · 4 replies
Discussion options

You must be logged in to vote

Hello!

It is not clear exactly how you inject documentation into your pages, but you can:

  • document this in your class docstring
  • make your alias package.ExampleClass public (by listing it in __all__), and mkdocstrings-python will render it when injecting docs for package. its full path will show as package.ExampleClass

Does that help?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@viktor40
Comment options

@pawamoy
Comment options

@viktor40
Comment options

@pawamoy
Comment options

Answer selected by viktor40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants