From 6626781dffef5df186c270fd19a66ccfc3f5a19a Mon Sep 17 00:00:00 2001 From: Firepup Sixfifty Date: Tue, 7 Nov 2023 21:23:59 -0600 Subject: [PATCH] Formatting --- commands.py | 8 +++++++- overrides.py | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/commands.py b/commands.py index 938c258..81d9f44 100644 --- a/commands.py +++ b/commands.py @@ -113,7 +113,13 @@ def eball(bot, chan: str, name: str, message: str) -> None: def debug(bot, chan: str, name: str, message: str) -> None: - dbg_out = {"VERSION": bot.__version__, "NICKLEN": bot.nicklen, "NICK": bot.nick, "ADMINS": bot.adminnames, "CHANNELS": bot.channels} + dbg_out = { + "VERSION": bot.__version__, + "NICKLEN": bot.nicklen, + "NICK": bot.nick, + "ADMINS": bot.adminnames, + "CHANNELS": bot.channels, + } bot.msg(f"[DEBUG] {dbg_out}", chan) diff --git a/overrides.py b/overrides.py index b6f066f..9ea6e93 100644 --- a/overrides.py +++ b/overrides.py @@ -8,17 +8,17 @@ _T = TypeVar("_T") class bytes(bbytes): """Local override of builtin bytes class to add "lazy_decode" -bytes(iterable_of_ints) -> bytes -bytes(string, encoding[, errors]) -> bytes -bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer -bytes(int) -> bytes object of size given by the parameter initialized with null bytes -bytes() -> empty bytes object + bytes(iterable_of_ints) -> bytes + bytes(string, encoding[, errors]) -> bytes + bytes(bytes_or_buffer) -> immutable copy of bytes_or_buffer + bytes(int) -> bytes object of size given by the parameter initialized with null bytes + bytes() -> empty bytes object -Construct an immutable array of bytes from: - - an iterable yielding integers in range(256) - - a text string encoded using the specified encoding - - any object implementing the buffer API. - - an integer + Construct an immutable array of bytes from: + - an iterable yielding integers in range(256) + - a text string encoded using the specified encoding + - any object implementing the buffer API. + - an integer """ def __new__(