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 |
Answered by
pawamoy
May 20, 2025
Replies: 2 comments 1 reply
|
You can use the |
0 replies
Answer selected by
PerchunPak
|
Oh, you are right! Sorry for rockie question ::: src.some.Example
options:
filters:
- "!to_json" |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use the
filtersormembersoptions, I'll let you check the details in our docs 🙂