From 302423bfdb53b45ba950dd551175b97efeed0688 Mon Sep 17 00:00:00 2001 From: Andrej Date: Wed, 28 May 2025 14:25:56 +0500 Subject: [PATCH] Fix Ruff UP004 (useless-object-inheritance) https://docs.astral.sh/ruff/rules/useless-object-inheritance/ --- src/ifcbimtester/examples/steps/aggregation.py | 2 +- src/ifcsverchok/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ifcbimtester/examples/steps/aggregation.py b/src/ifcbimtester/examples/steps/aggregation.py index 5cb14a8b9e..67435eee62 100644 --- a/src/ifcbimtester/examples/steps/aggregation.py +++ b/src/ifcbimtester/examples/steps/aggregation.py @@ -139,7 +139,7 @@ def check_if_element_exists_by_types_with_attribute_name(ifc_types, attribute_na assert not errors, "Errors occured:\n{}".format("\n".join(errors)) -class TableModel(object): +class TableModel: """This class represents a table of data.""" def __init__(self): diff --git a/src/ifcsverchok/__init__.py b/src/ifcsverchok/__init__.py index 97fe04c5e0..2296e1ce5a 100644 --- a/src/ifcsverchok/__init__.py +++ b/src/ifcsverchok/__init__.py @@ -293,7 +293,7 @@ class IFC_PT_write_file_panel(bpy.types.Panel): CLASSES = [IFC_Sv_UpdateCurrent, IFC_Sv_write_file, IFC_PT_write_file_panel] -class SvExCategoryProvider(object): +class SvExCategoryProvider: def __init__(self, identifier, menu): self.identifier = identifier self.menu = menu