Add types-docutils as a dependency of types-setuptools (#9460)

Remove the need for subclassing `Any`
This commit is contained in:
Avasam
2023-01-05 05:37:44 -05:00
committed by GitHub
parent 7fdbb7228c
commit 9041a925cf
2 changed files with 4 additions and 4 deletions

View File

@@ -1 +1,2 @@
version = "65.6.*"
requires = ["types-docutils"]

View File

@@ -1,12 +1,11 @@
from typing import Any
from typing_extensions import TypeAlias
import docutils.utils
from ..cmd import Command
_Reporter: TypeAlias = Any # really docutils.utils.Reporter
# Only defined if docutils is installed.
class SilentReporter(_Reporter):
class SilentReporter(docutils.utils.Reporter):
messages: Any
def __init__(
self,