Skip to content

Commit ed1fd8f

Browse files
authored
Add missing distribution attribute to distutils.cmd.Command (#9893)
Signed-off-by: Henry Schreiner <[email protected]>
1 parent eb3f8f3 commit ed1fd8f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

stdlib/distutils/cmd.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ from distutils.dist import Distribution
55
from typing import Any
66

77
class Command:
8+
distribution: Distribution
89
sub_commands: list[tuple[str, Callable[[Command], bool] | None]]
910
def __init__(self, dist: Distribution) -> None: ...
1011
@abstractmethod

stubs/setuptools/setuptools/_distutils/cmd.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from typing_extensions import Self
77
from .dist import Distribution
88

99
class Command:
10+
distribution: Distribution
1011
sub_commands: ClassVar[list[tuple[str, Callable[[Self], bool] | None]]]
1112
def __init__(self, dist: Distribution) -> None: ...
1213
@abstractmethod

0 commit comments

Comments
 (0)