Skip to content

Commit 05f7718

Browse files
fix: remove obsolete noqa comment from post_generate
The B027 noqa comment was suppressing flake8-bugbear's warning about empty abstract methods, but post_generate now has an implementation that calls _reset_model_state().
1 parent 7639c3a commit 05f7718

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oneiro/pipelines/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def build_result(
180180
guidance_scale=guidance_scale,
181181
)
182182

183-
def post_generate(self, **kwargs: Any) -> None: # noqa: B027
183+
def post_generate(self, **kwargs: Any) -> None:
184184
"""Post-generation cleanup hook called after generation completes.
185185
186186
This base implementation resets stateful model caches using the diffusers

0 commit comments

Comments
 (0)