diff options
author | 2021-02-21 03:17:57 +0100 | |
---|---|---|
committer | 2021-02-23 03:33:29 +0100 | |
commit | 95f6dd89a528be327e9c52b47948e3d8138590ed (patch) | |
tree | 3fba61471eb91c5d9ec032c7284dca11f9a6d768 | |
parent | Correct length adjustment (diff) |
Remove redundant group check
As we check for non dt symbol names to be sure in case something pops up
, we can skip the initial group check as all the symbols from those
groups should point to non dt tags.
-rw-r--r-- | bot/exts/info/doc/_parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/info/doc/_parsing.py b/bot/exts/info/doc/_parsing.py index c26af8ac3..f9b4f9d8a 100644 --- a/bot/exts/info/doc/_parsing.py +++ b/bot/exts/info/doc/_parsing.py @@ -231,7 +231,7 @@ def get_symbol_markdown(soup: BeautifulSoup, symbol_data: DocItem) -> Optional[s signature = None # Modules, doc pages and labels don't point to description list tags but to tags like divs, # no special parsing can be done so we only try to include what's under them. - if symbol_data.group in {"module", "doc", "label"} or symbol_heading.name != "dt": + if symbol_heading.name != "dt": description = get_general_description(symbol_heading) elif symbol_data.group in _NO_SIGNATURE_GROUPS: |