How to have attributes (or source code) shown for TypedDict classes
#132
-
|
I have several classes that inherit from for a class like follows: class RunStatistics(TypedDict):
"""Type hint associated with emmet.core.vasp.calculation.RunStatistics."""
average_memory: float
max_memory: float
elapsed_time: float
system_time: float
user_time: float
total_time: float
cores: intAny suggestions on how to get these type hints visible to the user so they know what it looks like? Here is a live, practical example. I want to show the user what the return type is ( @pawamoy: This seems potentially somewhat related to https://mkdocstrings.github.io/griffe-pydantic/. Is this covered there or in another package? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
|
You can either:
|
Beta Was this translation helpful? Give feedback.

You can either:
show_if_no_docstring: true::: path.to.RunStatistics options: show_if_no_do…