From caedfb0c16bc98eb94d723caff42dfe0799f8f17 Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Wed, 22 Jul 2020 01:38:00 +0200 Subject: Remove conversion to str when finding elements. The tags need to be processed down the line, which is not viable on strings. --- bot/cogs/doc/parsing.py | 4 ++-- 1 file 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 -- cgit v1.2.3