Add comments when subclassing Any (#9732)

This commit is contained in:
Avasam
2023-02-14 08:11:56 -05:00
committed by GitHub
parent c437f5ba06
commit 140bba3425
5 changed files with 13 additions and 2 deletions

View File

@@ -6,6 +6,8 @@ from ..cmd import Command
_Reporter: TypeAlias = Any # really docutils.utils.Reporter
# Only defined if docutils is installed.
# Depends on a third-party stub. Since distutils is deprecated anyway,
# it's easier to just suppress the "any subclassing" error.
class SilentReporter(_Reporter):
messages: Any
def __init__(