From a1d46b3ecd4b7da7ccce43b1802ddeb09524659b Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sat, 21 Feb 2026 15:10:26 +0100 Subject: [PATCH] fix images.grid Signed-off-by: Vladimir Mandic --- modules/images.py | 5 +++-- pyproject.toml | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/images.py b/modules/images.py index f10b731b0..2e3e0a508 100644 --- a/modules/images.py +++ b/modules/images.py @@ -2,15 +2,16 @@ from modules.image.metadata import image_data, read_info_from_image from modules.image.save import save_image, sanitize_filename_part from modules.image.resize import resize_image from modules.image.namegen import FilenameGenerator -from modules.image.grid import image_grid, check_grid_size, get_grid_size, draw_grid_annotations, draw_prompt_matrix, combine_grid +from modules.image.grid import Grid, image_grid, check_grid_size, get_grid_size, draw_grid_annotations, draw_prompt_matrix, combine_grid __all__ = [ - 'FilenameGenerator', 'check_grid_size', 'combine_grid', 'draw_grid_annotations', 'draw_prompt_matrix', + 'FilenameGenerator', 'get_grid_size', + 'Grid', 'image_data', 'image_grid', 'read_info_from_image', diff --git a/pyproject.toml b/pyproject.toml index e89566311..a0143cc2b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -99,6 +99,7 @@ ignore = [ "RUF012", # Mutable class attributes "RUF013", # PEP 484 prohibits implicit `Optional` "RUF015", # Prefer `next(...)` over single element slice + "RUF022", # All is not sorted "RUF046", # Value being cast to `int` is already an integer "RUF059", # Unpacked variables are not used "RUF051", # Prefer pop over del