From e1976d5bfd79c13c12a412e874efd54e1763a005 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Fri, 11 Jul 2025 10:46:17 +0500 Subject: [PATCH] Fix Ruff UP013 (convert-typed-dict-functional-to-class) Apparently `type` is okay and doesn't break things in even in Python 3.12 --- .../edit_structural_boundary_condition.py | 19 ++++++------------- 1 file changed, 6 insertions(+), 13 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py index ca9cfa7a66..f88eb7fc71 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py +++ b/src/ifcopenshell-python/ifcopenshell/api/structural/edit_structural_boundary_condition.py @@ -19,19 +19,12 @@ import ifcopenshell from typing import Any, TypedDict, Literal, Union -AttributeDict = TypedDict( - "AttributeDict", - { - "type": Union[ - Literal[ - "string", - "null", - ], - str, # IFC Class. - ], - "value": Any, - }, -) +class AttributeDict(TypedDict): + type: Union[ + Literal["string", "null"], + str, # IFC Class. + ] + value: Any def edit_structural_boundary_condition(