Skip to content

Commit c0fa3f8

Browse files
Ignore static methods instead of setting to none
1 parent 7d13e77 commit c0fa3f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

cursorless-talon/src/command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,14 @@ def make_serializable(value: Any) -> Any:
9494
return {k: make_serializable(v) for k, v in value.items()}
9595
if isinstance(value, list):
9696
return [make_serializable(v) for v in value]
97-
if isinstance(value, staticmethod):
98-
return None
9997
if dataclasses.is_dataclass(value):
10098
items = {
10199
**{
102100
k: v
103101
for k, v in vars(type(value)).items()
104-
if not k.startswith("_") and not isinstance(v, property)
102+
if not k.startswith("_")
103+
and not isinstance(v, property)
104+
and not isinstance(v, staticmethod)
105105
},
106106
**value.__dict__,
107107
}

0 commit comments

Comments
 (0)