mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-02 09:33:25 +08:00
docutils: Use ClassVar for Directive class variables (#11550)
These are intended to be set as class variables, in subclasses of Directive, rather than instance variables. See also: - https://docutils.sourceforge.io/docs/howto/rst-directives.html#the-directive-class - https://docutils.sourceforge.io/docs/howto/rst-directives.html#admonitions
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from typing import Any
|
||||
|
||||
from docutils.parsers.rst import Directive
|
||||
|
||||
MODULEDOC: str
|
||||
@@ -8,15 +6,9 @@ FMTERDOC: str
|
||||
FILTERDOC: str
|
||||
|
||||
class PygmentsDoc(Directive):
|
||||
has_content: bool
|
||||
required_arguments: int
|
||||
optional_arguments: int
|
||||
final_argument_whitespace: bool
|
||||
option_spec: Any
|
||||
filenames: Any
|
||||
def run(self): ...
|
||||
def document_lexers(self): ...
|
||||
def document_formatters(self): ...
|
||||
def document_filters(self): ...
|
||||
filenames: set[str]
|
||||
def document_lexers(self) -> str: ...
|
||||
def document_formatters(self) -> str: ...
|
||||
def document_filters(self) -> str: ...
|
||||
|
||||
def setup(app) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user