Skip to content

Commit 824c07f

Browse files
committed
Include __init__ methods in autodoc too
1 parent 8fd9413 commit 824c07f

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

tornado/web.py

+4
Original file line numberDiff line numberDiff line change
@@ -1695,12 +1695,16 @@ def __init__(self, pattern, handler_class, kwargs={}, name=None):
16951695
"""Creates a URLSpec.
16961696
16971697
Parameters:
1698+
16981699
pattern: Regular expression to be matched. Any groups in the regex
16991700
will be passed in to the handler's get/post/etc methods as
17001701
arguments.
1702+
17011703
handler_class: RequestHandler subclass to be invoked.
1704+
17021705
kwargs (optional): A dictionary of additional arguments to be passed
17031706
to the handler's constructor.
1707+
17041708
name (optional): A name for this handler. Used by
17051709
Application.reverse_url.
17061710
"""

website/sphinx/conf.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
extensions = ["sphinx.ext.autodoc", "sphinx_coverage"]
1919

2020
autodoc_member_order = "bysource"
21+
autoclass_content = "both"
2122

2223
coverage_skip_undoc_in_source = True
2324
# I wish this could go in a per-module file...

0 commit comments

Comments
 (0)