cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.13k stars 78 forks source link

Fix Python type error #2487

Closed pokey closed 1 month ago

pokey commented 2 months ago

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