-
Is it possible to somehow prevent/ignore a warning at a specific location in the code?
When I run Is it possible to get |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
There is work in progress to make warnings configurable, but even that wouldn't be fine-grain enough to enable/disable warnings on specific lines of code, no 😕 We could imagine an extension that combines with warnings configuration and reads some kind of Note that you can document the return type with natural language in your docstring, so that you at least document something, even if not a proper object. Would that work for you? |
Beta Was this translation helpful? Give feedback.
Yes, in that case you can add a type to the docstring itself:
Format is
(type): description
. Reference: https://mkdocstrings.github.io/griffe/reference/docstrings/#google-section-returns.