markdown: Add missing attribute to Markdown stub. (#5544)

* markdown: Add missing attribute to Markdown stub.

* markdown: Add * to mark rest of arguments as keyword-only.

* markdown: Add **options
This commit is contained in:
Akshat
2021-05-29 23:10:07 +05:30
committed by GitHub
parent b2e3c4f1d7
commit bb79dc9b51

View File

@@ -1,4 +1,4 @@
from typing import Any, Optional
from typing import Any, Dict, Optional
from markdown.extensions import Extension
from markdown.treeprocessors import Treeprocessor
@@ -18,9 +18,11 @@ class CodeHilite:
tab_length: Any
hl_lines: Any
use_pygments: Any
options: Dict[str, Any]
def __init__(
self,
src: Optional[Any] = ...,
*,
linenums: Optional[Any] = ...,
guess_lang: bool = ...,
css_class: str = ...,
@@ -30,6 +32,7 @@ class CodeHilite:
tab_length: int = ...,
hl_lines: Optional[Any] = ...,
use_pygments: bool = ...,
**options: Any,
) -> None: ...
def hilite(self): ...