fix(seautils): use length_hint
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 42s

This commit is contained in:
Seaswimmer 2024-05-13 21:12:51 -04:00
parent 84d2728d3a
commit 059badaa9b
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -6,6 +6,7 @@
# |_____/ \___|\__,_|___/ \_/\_/ |_|_| |_| |_|_| |_| |_|\___|_|
import inspect
import operator
from discord import Embed
from redbot.core import commands
@ -44,7 +45,7 @@ class SeaUtils(commands.Cog):
page_length = 1977
)
content = []
max_i = len(temp_content)
max_i = operator.length_hint(temp_content)
i = 1
for page in temp_content:
content.append(f"**Page {i}/{max_i}**\n{cf.box(page, lang='py')}")