1 from _typeshed import Self
2 from types import ModuleType
3 from typing import Any, Callable, Generic, TypeVar, overload
4 from unittest import TestLoader, TestSuite
6 from setuptools import Command
10 class ScanningLoader(TestLoader):
11 def __init__(self) -> None: ...
12 def loadTestsFromModule(self, module: ModuleType, pattern: Any | None = ...) -> list[TestSuite]: ... # type: ignore
14 class NonDataProperty(Generic[_T]):
15 fget: Callable[..., _T]
16 def __init__(self, fget: Callable[..., _T]) -> None: ...
18 def __get__(self: Self, obj: None, objtype: object = ...) -> Self: ...
20 def __get__(self, obj: Any, objtype: object = ...) -> _T: ...
29 def initialize_options(self) -> None: ...
30 def finalize_options(self) -> None: ...
31 # TODO: uncomment once https://github.com/python/mypy/pull/10884 is released
32 # def test_args(self): ...
33 def with_project_on_sys_path(self, func) -> None: ...
34 def project_on_sys_path(self, include_dists=...): ...
36 def paths_on_pythonpath(paths) -> None: ...
38 def install_dists(dist): ...
39 def run(self) -> None: ...
40 def run_tests(self) -> None: ...