Commit 4387672
authored
Fix Python type error (#2487)
Latest pylance version is giving me the following error:
```
Cannot access attribute "__class__" for class "type[DataclassInstance]"
A property defined within a protocol class cannot be accessed as a class variable
```
Note that this solution came from a chat with chatgpt so I have no idea
whether it's correct. Please review carefully. We really should have
unit tests for this function
I did run local talon tests and all green, as well as tried cheatsheet
## Checklist
- [-] I have added
[tests](https://www.cursorless.org/docs/contributing/test-case-recorder/)
- [-] I have updated the
[docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and
[cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet)
- [x] I have not broken the cheatsheet1 parent e22456f commit 4387672
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
100 | 104 | | |
101 | 105 | | |
102 | 106 | | |
| |||
0 commit comments