diff --git a/man/build_class_graphical.py b/man/build_class_graphical.py index 31caffcdf75..4e295bb18f5 100644 --- a/man/build_class_graphical.py +++ b/man/build_class_graphical.py @@ -128,7 +128,7 @@ def get_module_image(module, images): return image if basename == module: return image - return sorted(candidates, key=len)[0] + return min(candidates, key=len) def generate_page_for_category( diff --git a/pyproject.toml b/pyproject.toml index 74c62b14f0e..f4af0da8f0f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -162,7 +162,6 @@ ignore = [ "FURB152", # math-constant "FURB154", # repeated-global "FURB171", # single-item-membership-test - "FURB192", # sorted-min-max "I001", # unsorted-imports "ISC003", # explicit-string-concatenation "PERF203", # try-except-in-loop