Add constant example
This commit is contained in:
parent
de73e1a27b
commit
e9fc2d8e02
|
@ -8,8 +8,11 @@ It can include specific function docs here:
|
||||||
|
|
||||||
.. autofunction:: math.log
|
.. autofunction:: math.log
|
||||||
|
|
||||||
And here's the docs for our second module:
|
And here's the docs for our second module. We'll include ``undoc-members`` this
|
||||||
|
time:
|
||||||
|
|
||||||
.. automodule:: simple
|
.. automodule:: simple
|
||||||
:members:
|
:members:
|
||||||
|
:undoc-members:
|
||||||
|
|
||||||
|
And that's all she wrote.
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
|
|
||||||
__all__ = ["SIMPLE_CONST", "bar"]
|
__all__ = ["SIMPLE_CONST", "bar"]
|
||||||
|
|
||||||
SIMPLE_CONST = 2
|
SIMPLE_CONST = 2 #: The number 2
|
||||||
|
|
||||||
def bar(a, b):
|
def bar(a, b):
|
||||||
"""Returns whether :a: and :b: have passed the bar exam in their state."""
|
|
||||||
return a + b > SIMPLE_CONST
|
return a + b > SIMPLE_CONST
|
||||||
|
|
Loading…
Reference in New Issue