> diff --git a/dts/framework/runner.py b/dts/framework/runner.py
> index db8e3ba96b..d74f1871db 100644
> --- a/dts/framework/runner.py
> +++ b/dts/framework/runner.py
> @@ -23,7 +23,7 @@
>  import re
>  import sys
>  from pathlib import Path
> -from types import MethodType
> +from types import FunctionType
>  from typing import Iterable, Sequence
>
>  from .config import (
> @@ -132,8 +132,8 @@ def run(self):
>          the :option:`--test-suite` command line argument or
>          the :envvar:`DTS_TESTCASES` environment variable.
>          """
> -        sut_nodes: dict[str, SutNode] = {}
> -        tg_nodes: dict[str, TGNode] = {}
> +        sut_nodes = {}
> +        tg_nodes = {}
>          try:
>              # check the python version of the server that runs dts
>              self._check_dts_python_version()
> @@ -305,7 +305,7 @@ def is_test_suite(object) -> bool:
>
>      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?

>          """Filter `test_cases_to_run` from `test_suite_class`.
>
>          There are two rounds of filtering if `test_cases_to_run` is not 
> empty.

Reply via email to