mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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
|
||||
|
||||
|
||||
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(
|
||||
|
||||
Reference in New Issue
Block a user