aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2020-09-20 03:08:36 +0200
committerGravatar Numerlor <[email protected]>2020-09-20 03:08:36 +0200
commit38753114c0d056ba330296c9fea7a8f2312459f9 (patch)
treebfedf1ffc043a62d6c3a7649aa6a59041df037df
parentReplace caching of soups with new class. (diff)
Replace forward ref with future annotations import
-rw-r--r--bot/cogs/doc/parsing.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py
index 9fbce7bed..21a3065f4 100644
--- a/bot/cogs/doc/parsing.py
+++ b/bot/cogs/doc/parsing.py
@@ -1,3 +1,5 @@
+from __future__ import annotations
+
import logging
import re
import string
@@ -178,7 +180,7 @@ def _match_end_tag(tag: Tag) -> bool:
return tag.name == "table"
-def get_symbol_markdown(soup: BeautifulSoup, symbol_data: "DocItem") -> str:
+def get_symbol_markdown(soup: BeautifulSoup, symbol_data: DocItem) -> str:
"""
Return parsed markdown of the passed symbol using the passed in soup, truncated to 1000 characters.