-
Notifications
You must be signed in to change notification settings - Fork 131
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix all class members missing when documenting a module with the same…
… name as a standard library module Fixes #478
- Loading branch information
Showing
11 changed files
with
226 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Fix all class members missing when documenting a module with the same name as a standard library module | ||
|
||
Members inherited from the standard library can also have their skip value | ||
overridden by autoapi-skip-member. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
templates_path = ["_templates"] | ||
source_suffix = ".rst" | ||
master_doc = "index" | ||
project = "pystdlib" | ||
copyright = "2015, readthedocs" | ||
author = "readthedocs" | ||
version = "0.1" | ||
release = "0.1" | ||
language = "en" | ||
exclude_patterns = ["_build"] | ||
pygments_style = "sphinx" | ||
todo_include_todos = False | ||
html_theme = "alabaster" | ||
htmlhelp_basename = "pystdlibdoc" | ||
extensions = ["autoapi.extension"] | ||
autoapi_dirs = ["stdlib"] | ||
autoapi_file_pattern = "*.py" | ||
autoapi_keep_files = True | ||
autoapi_options = [ | ||
"members", | ||
"undoc-members" "special-members", | ||
"imported-members", | ||
"inherited-members", | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.. pypackageexample documentation master file, created by | ||
sphinx-quickstart on Fri May 29 13:34:37 2015. | ||
You can adapt this file completely to your liking, but it should at least | ||
contain the root `toctree` directive. | ||
Welcome to pypackageexample's documentation! | ||
============================================ | ||
|
||
.. toctree:: | ||
|
||
autoapi/index | ||
|
||
Contents: | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
|
||
|
||
Indices and tables | ||
================== | ||
|
||
* :ref:`genindex` | ||
* :ref:`modindex` | ||
* :ref:`search` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""This is a docstring.""" | ||
|
||
import ast | ||
|
||
|
||
class MyVisitor(ast.NodeVisitor): | ||
"""My custom visitor.""" | ||
|
||
def my_visit(self): | ||
"""My visit method.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
"""This is a docstring.""" | ||
|
||
from ssl import SSLContext | ||
|
||
|
||
class MySSLContext(SSLContext): | ||
"""This is a class.""" | ||
|
||
def my_method(self): | ||
"""This is a method.""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
"""ssl is the same name as a stdlib module.""" | ||
|
||
|
||
class SSLContext: | ||
"""Do things with ssl.""" | ||
|
||
def wrap_socket(self, sock): | ||
"""Wrap a socket.""" | ||
return sock |
Oops, something went wrong.