diff options
| author | 2020-09-20 03:08:36 +0200 | |
|---|---|---|
| committer | 2020-09-20 03:08:36 +0200 | |
| commit | 38753114c0d056ba330296c9fea7a8f2312459f9 (patch) | |
| tree | bfedf1ffc043a62d6c3a7649aa6a59041df037df | |
| parent | Replace caching of soups with new class. (diff) | |
Replace forward ref with future annotations import
| -rw-r--r-- | bot/cogs/doc/parsing.py | 4 |
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. |