diff options
| author | 2020-09-21 22:36:18 +0200 | |
|---|---|---|
| committer | 2020-09-21 22:36:18 +0200 | |
| commit | ba73313adaff363bef9e3a505bf66373ea915997 (patch) | |
| tree | 4a53b167c7d018c66d84d3a0d8eaa4e90c15e2d6 | |
| parent | Handle cases with outdated bot inventories. (diff) | |
Use List typehint that has a narrower scope
| -rw-r--r-- | bot/cogs/doc/parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/doc/parsing.py b/bot/cogs/doc/parsing.py index 939f963f1..9c82a1c13 100644 --- a/bot/cogs/doc/parsing.py +++ b/bot/cogs/doc/parsing.py @@ -82,7 +82,7 @@ _find_next_siblings_until_tag = partial(_find_elements_until_tag, func=Beautiful _find_previous_siblings_until_tag = partial(_find_elements_until_tag, func=BeautifulSoup.find_previous_siblings) -def _get_general_description(start_element: PageElement) -> Iterable[Union[Tag, NavigableString]]: +def _get_general_description(start_element: PageElement) -> List[Union[Tag, NavigableString]]: """ Get page content to a table or a tag with its class in `SEARCH_END_TAG_ATTRS`. |