diff --git a/stubs/setuptools/METADATA.toml b/stubs/setuptools/METADATA.toml index eee7ef03101e..1eb42459d561 100644 --- a/stubs/setuptools/METADATA.toml +++ b/stubs/setuptools/METADATA.toml @@ -1 +1,2 @@ version = "65.6.*" +requires = ["types-docutils"] diff --git a/stubs/setuptools/setuptools/_distutils/command/check.pyi b/stubs/setuptools/setuptools/_distutils/command/check.pyi index 7404e6ce0c6e..fa6dbc2e6b77 100644 --- a/stubs/setuptools/setuptools/_distutils/command/check.pyi +++ b/stubs/setuptools/setuptools/_distutils/command/check.pyi @@ -1,12 +1,11 @@ from typing import Any -from typing_extensions import TypeAlias -from ..cmd import Command +import docutils.utils -_Reporter: TypeAlias = Any # really docutils.utils.Reporter +from ..cmd import Command # Only defined if docutils is installed. -class SilentReporter(_Reporter): +class SilentReporter(docutils.utils.Reporter): messages: Any def __init__( self,