Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
56 changed files
with
2,785 additions
and
487 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
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.
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,8 @@ | ||
from uqbar.enums import IntEnumeration | ||
|
||
|
||
class FakeEnum(IntEnumeration): | ||
FOO = 0 | ||
BAR = 1 | ||
BAZ = 2 | ||
QUUX = 3 |
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,7 @@ | ||
master_doc = "index" | ||
|
||
extensions = ["uqbar.sphinx.book"] | ||
|
||
html_static_path = ["_static"] | ||
|
||
uqbar_book_strict = True |
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,15 @@ | ||
Fake Docs | ||
========= | ||
|
||
:: | ||
|
||
>>> for i in range(10): | ||
... 1 / 0 | ||
... | ||
Traceback (most recent call last): | ||
File "<stdin>", line 2, in <module> | ||
ZeroDivisionError: division by zero | ||
|
||
:: | ||
>>> print(this_name_does_not_exist) |
Empty file.
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,38 @@ | ||
API | ||
=== | ||
|
||
Text:: | ||
|
||
>>> print("I am text.") | ||
|
||
.. autoclass:: fake.GrandParent | ||
:members: | ||
:inherited-members: | ||
|
||
Text:: | ||
|
||
>>> print("I am text.") | ||
|
||
.. autoclass:: fake.Parent | ||
:members: | ||
:inherited-members: | ||
|
||
Text:: | ||
|
||
>>> print("I am text.") | ||
|
||
.. autoclass:: fake.Uncle | ||
:members: | ||
:inherited-members: | ||
|
||
Text:: | ||
|
||
>>> print("I am text.") | ||
|
||
.. autoclass:: fake.Child | ||
:members: | ||
:inherited-members: | ||
|
||
Text:: | ||
|
||
>>> print("I am text.") |
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,5 @@ | ||
master_doc = "index" | ||
|
||
extensions = ["sphinx.ext.autodoc", "uqbar.sphinx.book"] | ||
|
||
html_static_path = ["_static"] |
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,109 @@ | ||
class GrandParent: | ||
""" | ||
A grand parent. | ||
:: | ||
>>> print("I am a grand parent") | ||
""" | ||
|
||
def one(self): | ||
""" | ||
Grand parent: one. | ||
:: | ||
>>> print("Grand parent: one.") | ||
""" | ||
pass | ||
|
||
def two(self): | ||
""" | ||
Grand parent: two. | ||
:: | ||
>>> print("Grand parent: two.") | ||
""" | ||
pass | ||
|
||
def three(self): | ||
""" | ||
Grand parent: three. | ||
:: | ||
>>> print("Grand parent: three.") | ||
:: | ||
>>> import uqbar.graphs | ||
>>> g = uqbar.graphs.Graph() | ||
>>> n1 = uqbar.graphs.Node() | ||
>>> n2 = uqbar.graphs.Node() | ||
>>> g.extend([n1, n2]) | ||
>>> e = n1.attach(n2) | ||
:: | ||
>>> print(format(g, "graphviz")) | ||
:: | ||
>>> uqbar.graphs.Grapher(g)() # doctest: +SKIP | ||
And that, my friends, is a graph. | ||
""" | ||
pass | ||
|
||
|
||
class Parent(GrandParent): | ||
""" | ||
A parent. | ||
:: | ||
>>> print("I am a parent") | ||
""" | ||
|
||
def one(self): | ||
""" | ||
Parent: one. | ||
:: | ||
>>> print("Parent: one.") | ||
""" | ||
pass | ||
|
||
|
||
class Uncle(GrandParent): | ||
# I don't have a docstring or any overridden methods. | ||
pass | ||
|
||
|
||
class Child(Parent): | ||
""" | ||
A child. | ||
:: | ||
>>> print("I am a child") | ||
""" | ||
|
||
def two(self): | ||
""" | ||
Child: two. | ||
:: | ||
>>> print("Child: two.") | ||
""" | ||
pass |
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,37 @@ | ||
Fake Docs | ||
========= | ||
|
||
:: | ||
|
||
>>> print("hello, world!"); | ||
>>> print("foo bar baz!"); | ||
>>> print("i'm on my own line too!"); | ||
|
||
:: | ||
|
||
>>> import uqbar.graphs | ||
|
||
:: | ||
|
||
>>> g = uqbar.graphs.Graph() | ||
>>> n1 = uqbar.graphs.Node() | ||
>>> g.append(n1) | ||
|
||
:: | ||
|
||
>>> for i in range(3): | ||
... n2 = uqbar.graphs.Node() | ||
... g.append(n2) | ||
... e = n1.attach(n2) | ||
... uqbar.graphs.Grapher(g)() | ||
... print(i) | ||
... n1 = n2 | ||
... | ||
|
||
:: | ||
|
||
>>> print(format(g, "graphviz")) | ||
|
||
.. toctree:: | ||
|
||
api |
Oops, something went wrong.