We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da458a commit 444b5a9Copy full SHA for 444b5a9
tests/test_autodocsumm.py
@@ -47,13 +47,7 @@ def get_soup(app, fname):
47
48
def in_autosummary(what, html) -> bool:
49
soup = bs4.BeautifulSoup(html, "html.parser")
50
- autosummaries = soup("table")
51
- found = False
52
- for tag in autosummaries:
53
- if tag.find_all("span", string=what):
54
- found = True
55
- break
56
- return found
+ return any(tag.find_all("span", string=what) for tag in soup("table"))
57
58
59
class TestAutosummaryDocumenter:
0 commit comments