style: turn on ruff UP and B rules and fix every finding

This commit is contained in:
imSp4rky
2026-11-25 16:34:09 -07:00
parent 1a63076df2
commit d8058a3610
264 changed files with 2950 additions and 2966 deletions
+1 -2
View File
@@ -1,7 +1,6 @@
from __future__ import annotations
from pathlib import Path
from typing import Union
from Cryptodome.Cipher import Blowfish
@@ -17,7 +16,7 @@ class BlowfishStripe:
CHUNK = 2048
IV = bytes(range(8))
def __init__(self, key: Union[bytes, str]) -> None:
def __init__(self, key: bytes | str) -> None:
self.key: bytes = bytes.fromhex(key) if isinstance(key, str) else key
def decrypt_chunk(self, chunk: bytes) -> bytes: