mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-24 03:51:52 +08:00
Add types-docutils as a dependency of types-setuptools (#9460)
Remove the need for subclassing `Any`
This commit is contained in:
@@ -1 +1,2 @@
|
||||
version = "65.6.*"
|
||||
requires = ["types-docutils"]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user