Use colour in README and bump once again
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
70e5a98eb9
commit
6524cc675b
@ -1,4 +1,10 @@
|
|||||||
# flat-tree 0.0.1a8 (UNRELEASED)
|
# flat-tree 0.0.1a9 (UNRELEASED)
|
||||||
|
|
||||||
|
# flat-tree 0.0.1a8 (2020-07-07)
|
||||||
|
|
||||||
|
## Trivial/Internal Changes
|
||||||
|
|
||||||
|
- Use colours in the README for more happiness
|
||||||
|
|
||||||
# flat-tree 0.0.1a7 (2020-07-07)
|
# flat-tree 0.0.1a7 (2020-07-07)
|
||||||
|
|
||||||
|
15
README.md
15
README.md
@ -14,16 +14,17 @@
|
|||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
```
|
```sh
|
||||||
$ pip install flat-tree
|
$ pip install flat-tree
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example
|
## Example
|
||||||
|
|
||||||
```
|
```python
|
||||||
>>> from flat_tree.accessor import FlatTreeIterator
|
from flat_tree.accessor import FlatTreeIterator
|
||||||
>>> tree_iter = FlatTreeIterator()
|
|
||||||
>>> assert tree_iter.index == 0
|
tree_iter = FlatTreeIterator()
|
||||||
>>> assert tree_iter.parent() == 1
|
assert tree_iter.index == 0
|
||||||
>>> assert tree_iter.parent() == 3
|
assert tree_iter.parent() == 1
|
||||||
|
assert tree_iter.parent() == 3
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user