8000 Update setuptools to v69 by Avasam · Pull Request #11066 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Update setuptools to v69 #11066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

8000
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Go with allowlist entry instead for mypy support
  • Loading branch information
Avasam committed Nov 23, 2023
commit 3acee2ce51f4ef9238b860aa40312ea155724cb7
4 changes: 4 additions & 0 deletions stubs/setuptools/@tests/stubtest_allowlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ setuptools._distutils.dist.Distribution.get_requires
setuptools._distutils.dist.Distribution.get_provides
setuptools._distutils.dist.Distribution.get_obsoletes

# Is a functools.partial, so stubtest says "is not a function"
setuptools.dep_util.newer_pairwise_group
setuptools.modified.newer_pairwise_group

# Private modules
setuptools.config._validate_pyproject.*
setuptools.command.build_py.build_py.existing_egg_info_dir
Expand Down
5 changes: 1 addition & 4 deletions stubs/setuptools/setuptools/_distutils/_modified.pyi
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import functools
from typing_extensions import Literal

def newer(source, target): ...
def newer_pairwise(sources, targets, newer=...): ...
def newer_group(sources, target, missing: Literal["error", "newer", "ignore"] = "error"): ...

# def newer_pairwise_group(sources, targets, *, newer=...): ...
newer_pairwise_group = functools.partial(newer_pairwise, newer=newer_group)
def newer_pairwise_group(sources, targets, *, newer=...): ...
0