We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e22456f commit 4387672Copy full SHA for 4387672
cursorless-talon/src/command.py
@@ -96,7 +96,11 @@ def make_serializable(value: Any) -> Any:
96
return [make_serializable(v) for v in value]
97
if dataclasses.is_dataclass(value):
98
items = {
99
- **{k: v for k, v in value.__class__.__dict__.items() if k[0] != "_"},
+ **{
100
+ k: v
101
+ for k, v in vars(type(value)).items()
102
+ if not k.startswith("_") and not isinstance(v, property)
103
+ },
104
**value.__dict__,
105
}
106
return {k: make_serializable(v) for k, v in items.items() if v is not None}
0 commit comments