From 3c4105cbc5f406c810c8394db7caddcf682f3b3f Mon Sep 17 00:00:00 2001 From: Andrej Date: Wed, 28 May 2025 14:53:03 +0500 Subject: [PATCH] Fix Ruff UP011 (lru-cache-without-parameters) https://docs.astral.sh/ruff/rules/lru-cache-without-parameters/ --- src/ifcopenshell-python/ifcopenshell/util/pset.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/pset.py b/src/ifcopenshell-python/ifcopenshell/util/pset.py index c094ab7893..ac8cec997b 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/pset.py +++ b/src/ifcopenshell-python/ifcopenshell/util/pset.py @@ -61,7 +61,7 @@ class PsetQto: element.TemplateType = "QTO_TYPEDRIVENOVERRIDE" self.templates = templates - @lru_cache() + @lru_cache def get_applicable( self, ifc_class="", @@ -89,7 +89,7 @@ class PsetQto: result.append(prop_set) return result - @lru_cache() + @lru_cache def get_applicable_names( self, ifc_class: str, @@ -164,7 +164,7 @@ class PsetQto: return True return False - @lru_cache() + @lru_cache def get_by_name(self, name: str) -> Optional[entity_instance]: for template in self.templates: for prop_set in template.by_type("IfcPropertySetTemplate"):