Hide one function from the class #279
-
So I have a class, which implements an internal class Example:
def to_json(self): # I want to hide this from docs
...
class ToJsonImplemented(typing.Protocol):
def to_json(self) -> dict: ...
def obj_to_json(obj: ToJsonImplemented) -> dict: ... There are multiple classes that implement ::: src.some.Example |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You can use the |
Beta Was this translation helpful? Give feedback.
-
Oh, you are right! Sorry for rockie question ::: src.some.Example
options:
filters:
- "!to_json" |
Beta Was this translation helpful? Give feedback.
You can use the
filters
ormembers
options, I'll let you check the details in our docs 🙂