diff options
| author | 2020-07-22 01:38:00 +0200 | |
|---|---|---|
| committer | 2020-07-22 01:38:00 +0200 | |
| commit | caedfb0c16bc98eb94d723caff42dfe0799f8f17 (patch) | |
| tree | 2c6aedc0fde454afb1d1a8f2a9b2fc92324bf939 | |
| parent | Create a function for collecting signatures. (diff) | |
Remove conversion to str when finding elements.
The tags need to be processed down the line,
which is not viable on strings.
| -rw-r--r-- | bot/cogs/doc/parsing.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py index 5b60f1609..acf3a0804 100644 --- a/bot/cogs/doc/parsing.py +++ b/bot/cogs/doc/parsing.py @@ -31,7 +31,7 @@ def find_elements_until_tag( *, func: Callable, limit: int = None, -) -> List[str]: +) -> List[Tag]: """ Get all tags until a tag matching `tag_filter` is found. @@ -49,7 +49,7 @@ def find_elements_until_tag( break elif tag_filter(element): break - elements.append(str(element)) + elements.append(element) return elements |