1
Fork 0
mirror of https://github.com/RGBCube/GitHubWrapper synced 2025-06-11 02:12:08 +00:00

'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2022-06-25 10:51:16 +00:00
parent 72df282684
commit e0032900a6
5 changed files with 24 additions and 26 deletions

View file

@ -27,9 +27,10 @@ class DPYStandaloneHTMLBuilder(StandaloneHTMLBuilder):
# the total count of lines for each index letter, used to distribute
# the entries into two columns
genindex = IndexEntries(self.env).create_index(self, group_entries=False) # type: ignore
indexcounts = []
for _k, entries in genindex:
indexcounts.append(sum(1 + len(subitems) for _, (_, subitems, _) in entries))
indexcounts = [
sum(1 + len(subitems) for _, (_, subitems, _) in entries)
for _k, entries in genindex
]
genindexcontext = {
'genindexentries': genindex,