diff options
-rw-r--r-- | bot/exts/info/doc/_html.py | 4 |
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. |