aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-03-05 02:39:14 +0100
committerGravatar Numerlor <[email protected]>2021-03-05 02:46:42 +0100
commit150cb3371040e0fefbe24702ca80ce2808014f6f (patch)
tree458a6b11b2230ddfd273a3ad5b59bce4b924b20f
parentName tasks (diff)
Rename markup_hint to Markup
-rw-r--r--bot/exts/info/doc/_html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/doc/_html.py b/bot/exts/info/doc/_html.py
index 334b82e98..94efd81b7 100644
--- a/bot/exts/info/doc/_html.py
+++ b/bot/exts/info/doc/_html.py
@@ -33,9 +33,9 @@ class Strainer(SoupStrainer):
log.warning("`text` is not a supported kwarg in the custom strainer.")
super().__init__(**kwargs)
- markup_hint = Union[PageElement, List["markup_hint"]]
+ Markup = Union[PageElement, List["Markup"]]
- def search(self, markup: markup_hint) -> Union[PageElement, str]:
+ def search(self, markup: Markup) -> Union[PageElement, str]:
"""Extend default SoupStrainer behaviour to allow matching both `Tag`s` and `NavigableString`s."""
if isinstance(markup, str):
# Let everything through the text filter if we're including strings and tags.