8000 Replace bare Any in setuptools by Avasam · Pull Request #12406 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

Replace bare Any in setuptools #12406

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

Merged
merged 2 commits into from
Jul 25, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge branch 'main' of https://github.com/python/typeshed into Replac…
…e-bare-Any-in-setuptools
  • Loading branch information
Avasam committed Jul 23, 2024
commit ebdf37ba7ac29c7ff88ca75199ec59451427df8b
5 changes: 3 additions & 2 deletions stubs/setuptools/setuptools/command/develop.pyi
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from _typeshed import Incomplete
from typing import ClassVar

from pkg_resources import Distribution

Expand All @@ -7,8 +8,8 @@ from .easy_install import easy_install

class develop(namespaces.DevelopInstaller, easy_install):
description: str
user_options: Incomplete
boolean_options: Incomplete
user_options: ClassVar[list[tuple[str, str | None, str]]]
boolean_options: ClassVar[list[str]]
command_consumes_arguments: bool
multi_version: bool
def run(self) -> None: ... # type: ignore[override]
Expand Down
3 changes: 1 addition & 2 deletions stubs/setuptools/setuptools/command/dist_info.pyi
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
from _typeshed import Incomplete
from typing import ClassVar

from .._distutils.cmd import Command

class dist_info(Command):
description: str
user_options: Incomplete
user_options: ClassVar[list[tuple[str, str | None, str]]]
boolean_options: ClassVar[list[str]]
negative_opt: ClassVar[dict[str, str]]
def initialize_options(self) -> None: ...
Expand Down
4 changes: 2 additions & 2 deletions stubs/setuptools/setuptools/command/install.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ from typing import Any, ClassVar
from .._distutils.command import install as orig

class install(orig.install):
user_options: Incomplete
boolean_options: Incomplete
user_options: ClassVar[list[tuple[str, str | None, str]]]
boolean_options: ClassVar[list[str]]
# Any to work around variance issues
new_commands: list[tuple[str, Callable[[Any], bool]] | None]
old_and_unmanageable: Incomplete
Expand Down
6 changes: 3 additions & 3 deletions stubs/setuptools/setuptools/command/sdist.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ from .._distutils.command import sdist as orig
def walk_revctrl(dirname: str = "") -> None: ...

class sdist(orig.sdist):
user_options: Incomplete
negative_opt: Incomplete
user_options: ClassVar[list[tuple[str, str | None, str]]]
negative_opt: ClassVar[dict[str, str]]
README_EXTENSIONS: ClassVar[list[str]]
READMES: Incomplete
READMES: ClassVar[tuple[str, ...]]
filelist: Incomplete
def run(self) -> None: ...
def initialize_options(self) -> None: ...
Expand Down
5 changes: 2 additions & 3 deletions stubs/setuptools/setuptools/sandbox.pyi
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import sys
from _typeshed import Incomplete
from types import TracebackType
from typing import Literal
from typing import ClassVar, Literal
from typing_extensions import Self

from ._distutils.errors import DistutilsError
Expand Down Expand Up @@ -57,7 +56,7 @@ class AbstractSandbox:
def utime(self, path, *args, **kw): ...

class DirectorySandbox(AbstractSandbox):
write_ops: Incomplete
write_ops: ClassVar[dict[str, None]]
def __init__(self, sandbox, exceptions=...) -> None: ...
def tmpnam(self) -> None: ...
def open(self, file, flags, mode: int = 511, *args, **kw): ... # type: ignore[override]
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0