[PATCH 1/2] dts: update mypy static checker

Luca Vizzarro Luca.Vizzarro at arm.com
Tue May 14 13:30:29 CEST 2024


On 13/05/2024 17:02, Juraj Linkeš wrote:
>>       def _filter_test_cases(
>>           self, test_suite_class: type[TestSuite], test_cases_to_run: Sequence[str]
>> -    ) -> tuple[list[MethodType], list[MethodType]]:
>> +    ) -> tuple[list[FunctionType], list[FunctionType]]:
> 
> Does changing inspect.getmembers(test_suite_class, inspect.isfunction)
> to use inspect.ismethod not work?

Nope, for some reason when running inspect.ismethod on the TestSuite 
class methods it returns False... I didn't investigate further, as just 
isfunction works and it's not a deal breaker.


More information about the dev mailing list