mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-10 06:00:51 +00:00
Fix Ruff UP013 (convert-typed-dict-functional-to-class)
https://docs.astral.sh/ruff/rules/convert-typed-dict-functional-to-class/
This commit is contained in:
@@ -249,8 +249,16 @@ def flatten(iterable):
|
||||
yield item
|
||||
|
||||
|
||||
Call = TypedDict("Call", {"name": str, "args": tuple[Any, ...], "kwargs": dict[str, Any]})
|
||||
Prediction = TypedDict("Prediction", {"type": Literal["SHOULD_BE_CALLED"], "number": Optional[int], "call": Call})
|
||||
class Call(TypedDict):
|
||||
name: str
|
||||
args: tuple[Any, ...]
|
||||
kwargs: dict[str, Any]
|
||||
|
||||
|
||||
class Prediction(TypedDict):
|
||||
type: Literal["SHOULD_BE_CALLED"]
|
||||
number: Optional[int]
|
||||
call: Call
|
||||
|
||||
|
||||
class Prophecy:
|
||||
|
||||
Reference in New Issue
Block a user