From 150cb3371040e0fefbe24702ca80ce2808014f6f Mon Sep 17 00:00:00 2001 From: Numerlor <25886452+Numerlor@users.noreply.github.com> Date: Fri, 5 Mar 2021 02:39:14 +0100 Subject: Rename markup_hint to Markup --- bot/exts/info/doc/_html.py | 4 ++-- 1 file 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. -- cgit v1.2.3