massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-pyright / node_modules / pyright / dist / typeshed-fallback / stubs / setuptools / setuptools / command / test.pyi
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
5
6 from setuptools import Command
7
8 _T = TypeVar("_T")
9
10 class ScanningLoader(TestLoader):
11     def __init__(self) -> None: ...
12     def loadTestsFromModule(self, module: ModuleType, pattern: Any | None = ...) -> list[TestSuite]: ...  # type: ignore
13
14 class NonDataProperty(Generic[_T]):
15     fget: Callable[..., _T]
16     def __init__(self, fget: Callable[..., _T]) -> None: ...
17     @overload
18     def __get__(self: Self, obj: None, objtype: object = ...) -> Self: ...
19     @overload
20     def __get__(self, obj: Any, objtype: object = ...) -> _T: ...
21
22 class test(Command):
23     description: str
24     user_options: Any
25     test_suite: Any
26     test_module: Any
27     test_loader: Any
28     test_runner: Any
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=...): ...
35     @staticmethod
36     def paths_on_pythonpath(paths) -> None: ...
37     @staticmethod
38     def install_dists(dist): ...
39     def run(self) -> None: ...
40     def run_tests(self) -> None: ...