mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 22:11:54 +08:00
Bump setuptools to 72.2.* (#12461)
Co-authored-by: Avasam <samuel.06@hotmail.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
version = "71.1.*"
|
||||
version = "72.2.*"
|
||||
upstream_repository = "https://github.com/pypa/setuptools"
|
||||
extra_description = """\
|
||||
If using `setuptools >= 71.1` *only* for `pkg_resources`,
|
||||
|
||||
@@ -1,43 +1,19 @@
|
||||
from _typeshed import Incomplete, Unused
|
||||
from collections.abc import Callable
|
||||
from types import ModuleType
|
||||
from typing import ClassVar, Generic, TypeVar, overload
|
||||
from typing_extensions import Self
|
||||
from unittest import TestLoader, TestSuite
|
||||
from typing import ClassVar
|
||||
from typing_extensions import deprecated
|
||||
|
||||
from .. import Command
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_R = TypeVar("_R")
|
||||
|
||||
class ScanningLoader(TestLoader):
|
||||
def __init__(self) -> None: ...
|
||||
def loadTestsFromModule(self, module: ModuleType, pattern: Incomplete | None = None) -> list[TestSuite]: ... # type: ignore[override]
|
||||
|
||||
class NonDataProperty(Generic[_T, _R]):
|
||||
fget: Callable[[_T], _R]
|
||||
def __init__(self, fget: Callable[[_T], _R]) -> None: ...
|
||||
@overload
|
||||
def __get__(self, obj: None, objtype: Unused = None) -> Self: ...
|
||||
@overload
|
||||
def __get__(self, obj: _T, objtype: Unused = None) -> _R: ...
|
||||
|
||||
class test(Command):
|
||||
description: str
|
||||
@deprecated(
|
||||
"""\
|
||||
The test command is disabled and references to it are deprecated. \
|
||||
Please remove any references to `setuptools.command.test` in all supported versions of the affected package.\
|
||||
"""
|
||||
)
|
||||
class _test(Command):
|
||||
description: ClassVar[str]
|
||||
user_options: ClassVar[list[tuple[str, str, str]]]
|
||||
test_suite: Incomplete
|
||||
test_module: Incomplete
|
||||
test_loader: Incomplete
|
||||
test_runner: Incomplete
|
||||
def initialize_options(self) -> None: ...
|
||||
def finalize_options(self) -> None: ...
|
||||
@NonDataProperty
|
||||
def test_args(self) -> list[str]: ...
|
||||
def with_project_on_sys_path(self, func) -> None: ...
|
||||
def project_on_sys_path(self, include_dists=()): ...
|
||||
@staticmethod
|
||||
def paths_on_pythonpath(paths) -> None: ...
|
||||
@staticmethod
|
||||
def install_dists(dist): ...
|
||||
def run(self) -> None: ...
|
||||
def run_tests(self) -> None: ...
|
||||
|
||||
test = _test
|
||||
|
||||
Reference in New Issue
Block a user