Skip to content

Commit

Permalink
Fix dangerous default argument
Browse files Browse the repository at this point in the history
  • Loading branch information
deepsource-autofix[bot] authored Oct 18, 2021
1 parent 332d60d commit 2b64fa1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion minato_namikaze/bot_files/cogs/fun/encoding.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@

def pagify(
text: str,
delims: Sequence[str] = ["\n"],
delims: Sequence[str] = None,
*,
priority: bool = False,
escape_mass_mentions: bool = True,
shorten_by: int = 8,
page_length: int = 2000,
) -> Iterator[str]:
if delims is None:
delims = ["\n"]
in_text = text
page_length -= shorten_by
while len(in_text) > page_length:
Expand Down

0 comments on commit 2b64fa1

Please sign in to comment.