diff options
| author | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
|---|---|---|
| committer | Scott Gasch <[email protected]> | 2022-02-03 14:18:37 -0800 |
| commit | 713a609bd19d491de03debf8a4a6ddf2540b13dc (patch) | |
| tree | 6593978162d3c11c3a54e44a770aded4abc79704 /collect/trie.py | |
| parent | eb1c6392095947b3205c4d52cd9b1507e6cd776b (diff) | |
Change settings in flake8 and black.
Diffstat (limited to 'collect/trie.py')
| -rw-r--r-- | collect/trie.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/collect/trie.py b/collect/trie.py index 3e4c917..70d57b1 100644 --- a/collect/trie.py +++ b/collect/trie.py @@ -11,6 +11,7 @@ class Trie(object): for examples. """ + def __init__(self): self.root = {} self.end = "~END~" @@ -241,7 +242,14 @@ class Trie(object): return None return [x for x in node if x != self.end] - def repr_fancy(self, padding: str, pointer: str, parent: str, node: Any, has_sibling: bool): + def repr_fancy( + self, + padding: str, + pointer: str, + parent: str, + node: Any, + has_sibling: bool, + ): if node is None: return if node is not self.root: @@ -328,4 +336,5 @@ class Trie(object): if __name__ == '__main__': import doctest + doctest.testmod() |
