Skip to content

Commit c42e2da

Browse files
committed
docs: Exposing select dunder methods to Sphinx.
1 parent 7e69537 commit c42e2da

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

TODO.rst

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ TODO
55

66
Build Tooling
77
=============
8-
* **[HIGH]** Integrate tooling to build binaries for a matrix of operating
9-
systems, architectures and Python versions. This will also be our CI.
10-
This should help: https://github.com/pypa/cibuildwheel
8+
* **[MEDIUM]** Transition to Azure, move Linux arm to ARM pipeline without QEMU.
9+
10+
* **[MEDIUM]** Automate Apple Silicon.
1111

1212

1313
Docs
@@ -27,8 +27,6 @@ Docs
2727

2828
Development
2929
===========
30-
* **[HIGH]** Review API naming!
31-
3230
* **[HIGH]** Implement the auto-commit logic based on a watermark.
3331

3432
* **[MEDIUM]** Once we're done with them, merge in changes in the ``py_client_tweaks`` branch

docs/conf.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,18 @@
4949
napoleon_use_ivar = True
5050
napoleon_use_rtype = False
5151
napoleon_use_param = False
52+
53+
autodoc_default_options = {
54+
'special-members': '__init__ , __str__ , __enter__ , __exit__',
55+
'undoc-members': True
56+
}
57+
58+
59+
# def do_not_skip_dunder_members(_app, _what, name, _obj, would_skip, _options):
60+
# if name in ('__init__', '__call__', '__str__', '__enter__', '__exit__'):
61+
# return False
62+
# return would_skip
63+
64+
65+
# def setup(app):
66+
# app.connect('autodoc-skip-member', do_not_skip_dunder_members)

0 commit comments

Comments
 (0)