bindings: python: tests: ignore purposeful type errors
authorVincent Fazio <vfazio@xes-inc.com>
Thu, 14 Nov 2024 14:51:14 +0000 (08:51 -0600)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 19 Nov 2024 14:23:58 +0000 (15:23 +0100)
commit632ea4df4b3ec9c3721623b150c5f6964447db54
tree8613d2b8f4524134873fc2f0195a4427054fd9be
parentf04f58ae1d548542134a31f48a1285b59a2915fc
bindings: python: tests: ignore purposeful type errors

Some of the unit tests intentionally call methods or assign properties
with invalid values to ensure they fail in an expected way.

Type checkers complain for these instances so inform them via directive
that these lines should be ignore for specific errors.

Additionally, some lines that access properties without assigning the
value look like they perform no action to linters.

To appease the linter, read the value into a throw-away variable.

Signed-off-by: Vincent Fazio <vfazio@xes-inc.com>
Link: https://lore.kernel.org/r/20241114145116.2123714-22-vfazio@xes-inc.com
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
bindings/python/tests/tests_chip.py
bindings/python/tests/tests_chip_info.py
bindings/python/tests/tests_info_event.py
bindings/python/tests/tests_line_info.py
bindings/python/tests/tests_line_request.py
bindings/python/tests/tests_module.py