mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 22:12:32 +00:00
Fix Ruff UP013 (convert-typed-dict-functional-to-class)
Apparently `type` is okay and doesn't break things in even in Python 3.12
This commit is contained in:
+6
-13
@@ -19,19 +19,12 @@ import ifcopenshell
|
|||||||
from typing import Any, TypedDict, Literal, Union
|
from typing import Any, TypedDict, Literal, Union
|
||||||
|
|
||||||
|
|
||||||
AttributeDict = TypedDict(
|
class AttributeDict(TypedDict):
|
||||||
"AttributeDict",
|
type: Union[
|
||||||
{
|
Literal["string", "null"],
|
||||||
"type": Union[
|
str, # IFC Class.
|
||||||
Literal[
|
]
|
||||||
"string",
|
value: Any
|
||||||
"null",
|
|
||||||
],
|
|
||||||
str, # IFC Class.
|
|
||||||
],
|
|
||||||
"value": Any,
|
|
||||||
},
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
def edit_structural_boundary_condition(
|
def edit_structural_boundary_condition(
|
||||||
|
|||||||
Reference in New Issue
Block a user