mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Remove artifacts from types and methods (model_* methods)
This commit is contained in:
parent
ab13b8a9f0
commit
35474f4cd2
1 changed files with 11 additions and 0 deletions
11
docs/conf.py
11
docs/conf.py
|
|
@ -69,3 +69,14 @@ texinfo_documents = [
|
|||
towncrier_draft_autoversion_mode = "draft"
|
||||
towncrier_draft_include_empty = False
|
||||
towncrier_draft_working_directory = Path(__file__).parent.parent
|
||||
|
||||
|
||||
def skip_model_prefixed_members(app, what, name, obj, skip, options):
|
||||
# Skip any member whose name starts with "model_"
|
||||
if name.startswith("model_"):
|
||||
return True
|
||||
return skip
|
||||
|
||||
|
||||
def setup(app):
|
||||
app.connect("autodoc-skip-member", skip_model_prefixed_members)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue