-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ossian O'Reilly
committed
Jan 3, 2018
1 parent
b59e25a
commit 4392ed6
Showing
15 changed files
with
136 additions
and
214 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
include mydocstring/*.py | ||
include mydocstring/tests/*.py |
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 was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
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,60 @@ | ||
""" | ||
Module docstring | ||
""" | ||
|
||
def function_with_docstring(arg1, arg2=True): | ||
"""Short description. | ||
Example of a function with a doc string. | ||
Args: | ||
arg1(type): description for arg1. | ||
arg2 : description for arg2 | ||
that spans multiple lines. | ||
Returns: | ||
bool: `True` or `False`. Defaults to `True`. | ||
The return section can also have a detailed description that spans | ||
multiple lines. It is important that this description is indented. | ||
""" | ||
pass | ||
|
||
class ExampleOldClass: | ||
""" | ||
An example of a docstring for an old-style class. | ||
""" | ||
|
||
def __init__(self): | ||
""" | ||
Description of the __init__ function. | ||
""" | ||
pass | ||
|
||
def class_function_with_docstring(self, arg1, arg2): | ||
""" | ||
Description of a class function. | ||
Args: | ||
arg1(type) : description for arg1. | ||
arg2 : description for arg1. | ||
""" | ||
pass | ||
|
||
class ExampleNewClass(object): | ||
""" | ||
An example of a docstring for a new-style class. | ||
""" | ||
def __init__(self): | ||
""" | ||
Example of a docstring for the init function. | ||
""" | ||
pass | ||
|
||
def __init__(arg1): | ||
""" | ||
Example of docstring for a function with the same name as a method. | ||
""" | ||
pass |
Oops, something went wrong.