8000 More pywin32 stub completion by Avasam · Pull Request #9308 · python/typeshed · GitHub
[go: up one dir, main page]

Skip to content

More pywin32 stub completion #9308

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 14 commits into from
Dec 5, 2022
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
Next Next commit
Revert post merge stdlib changes
  • Loading branch information
Avasam committed Dec 4, 2022
commit 2d56cc594d0b16242dc2471ff3e4ff893dc7db2c
6 changes: 3 additions & 3 deletions stdlib/distutils/core.pyi
8000
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from collections.abc import Mapping, Sequence
from collections.abc import Mapping
from distutils.cmd import Command as Command
from distutils.dist import Distribution as Distribution
from distutils.extension import Extension as Extension
Expand All @@ -19,7 +19,7 @@ def setup(
packages: list[str] = ...,
py_modules: list[str] = ...,
scripts: list[str] = ...,
ext_modules: Sequence[Extension] = ...,
ext_modules: list[Extension] = ...,
classifiers: list[str] = ...,
distclass: type[Distribution] = ...,
script_name: str = ...,
Expand All @@ -45,5 +45,5 @@ def setup(
password: str = ...,
fullname: str = ...,
**attrs: Any,
) -> Distribution: ...
) -> None: ...
def run_setup(script_name: str, script_args: list[str] | None = ..., stop_after: str = ...) -> Distribution: ...
8 changes: 1 addition & 7 deletions stdlib/distutils/dist.pyi
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from _typeshed import StrOrBytesPath, SupportsWrite
from collections.abc import Iterable, Mapping
from distutils.cmd import Command
from typing import IO, Any, overload
from typing_extensions import Literal
from typing import IO, Any

class DistributionMetadata:
def __init__(self, path: int | StrOrBytesPath | None = ...) -> None: ...
Expand Down Expand Up @@ -54,11 +53,6 @@ class DistributionMetadata:
class Distribution:
cmdclass: dict[str, type[Command]]
metadata: DistributionMetadata
command_obj: dict[str, Command]
def __init__(self, attrs: Mapping[str, Any] | None = ...) -> None: ...
def get_option_dict(self, command: str) -> dict[str, tuple[str, str]]: ...
def parse_config_files(self, filenames: Iterable[str] | None = ...) -> None: ...
@overload
def get_command_obj(self, command: str, create: Literal[True] = ...) -> Command: ...
@overload
def get_command_obj(self, command: str, create: Literal[False]) -> Command | None: ...
2 changes: 0 additions & 2 deletions stdlib/importlib/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ from collections.abc import Mapping, Sequence
from importlib.abc import Loader
from types import ModuleType

from . import machinery as machinery

__all__ = ["__import__", "import_module", "invalidate_caches", "reload"]

# Signature of `builtins.__import__` should be kept identical to `importlib.__import__`
Expand Down
1 change: 0 additions & 1 deletion stdlib/pickle.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,6 @@ if sys.version_info >= (3, 8):
NEXT_BUFFER: bytes
READONLY_BUFFER: bytes

def whichmodule(obj: object, name: str) -> str: ...
def encode_long(x: int) -> bytes: ... # undocumented
def decode_long(data: Iterable[SupportsIndex] | SupportsBytes | ReadableBuffer) -> int: ... # undocumented

Expand Down
0