Skip to content

Commit d6502fc

Browse files
pokeyfidgetingbits
authored andcommitted
Don't report error for self parameter name (#1958)
Suppresses `Instance methods should take a "self" parameter` warnings in editors that use pyright (eg VSCode). Due to the way Talon defines action classes, these warnings are almost always noise in any Talon user file set ## 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) - [ ] I have not broken the cheatsheet
1 parent 8f6dfd1 commit d6502fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ select = ["E", "F", "C4", "I001", "UP", "SIM"]
1212
ignore = ["E501", "SIM105", "UP035"]
1313
target-version = "py39"
1414
extend-exclude = ["vendor", "data/playground/**/*.py"]
15+
16+
[tool.pyright]
17+
reportSelfClsParameterName = false

0 commit comments

Comments
 (0)