[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2026-07-27 07:24:21 +00:00
commit e1aa01d8a6

View file

@ -36,7 +36,12 @@ def _torch(*, cuda = False, xpu = False):
)
def _modules(monkeypatch, *, torch = None, unsloth = False):
def _modules(
monkeypatch,
*,
torch = None,
unsloth = False,
):
"""Stub sys.modules so the gate sees a chosen torch / unsloth state."""
mods = dict(sys.modules)
mods.pop("unsloth", None)