From fbeca18046973e3d16769d576f27c6564b082e67 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 1 Dec 2025 11:48:19 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/models/rl.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py index 9fd9390a4b..0fb5354339 100644 --- a/unsloth/models/rl.py +++ b/unsloth/models/rl.py @@ -1306,7 +1306,11 @@ def patch_trl_rl_trainers(): import trl.trainer all_trainers = dir(trl.trainer) - all_trainers = [x for x in all_trainers if x.islower() and x.endswith("_trainer") and x != "base_trainer"] + all_trainers = [ + x + for x in all_trainers + if x.islower() and x.endswith("_trainer") and x != "base_trainer" + ] for trainer in all_trainers: _patch_trl_rl_trainers(trainer) return