Skip to content

Commit 9041a92

Browse files
authored
Add types-docutils as a dependency of types-setuptools (#9460)
Remove the need for subclassing `Any`
1 parent 7fdbb72 commit 9041a92

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

stubs/setuptools/METADATA.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
version = "65.6.*"
2+
requires = ["types-docutils"]

stubs/setuptools/setuptools/_distutils/command/check.pyi

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
from typing import Any
2-
from typing_extensions import TypeAlias
32

4-
from ..cmd import Command
3+
import docutils.utils
54

6-
_Reporter: TypeAlias = Any # really docutils.utils.Reporter
5+
from ..cmd import Command
76

87
# Only defined if docutils is installed.
9-
class SilentReporter(_Reporter):
8+
class SilentReporter(docutils.utils.Reporter):
109
messages: Any
1110
def __init__(
1211
self,

0 commit comments

Comments
 (0)