From 70d903c8b6eacced4f982553597d1b3afdf66299 Mon Sep 17 00:00:00 2001 From: Lee Date: Mon, 13 Jun 2022 16:47:51 +0800 Subject: [PATCH] `markdown`: annotate `HtmlStash`. (#8067) --- stubs/Markdown/markdown/util.pyi | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/stubs/Markdown/markdown/util.pyi b/stubs/Markdown/markdown/util.pyi index 7189cfa92..789d8ca81 100644 --- a/stubs/Markdown/markdown/util.pyi +++ b/stubs/Markdown/markdown/util.pyi @@ -29,14 +29,14 @@ class Processor: class HtmlStash: html_counter: int = ... - rawHtmlBlocks: Any + rawHtmlBlocks: list[str] tag_counter: int = ... - tag_data: Any + tag_data: list[dict[str, Any]] def __init__(self) -> None: ... - def store(self, html): ... + def store(self, html: str) -> str: ... def reset(self) -> None: ... - def get_placeholder(self, key): ... - def store_tag(self, tag, attrs, left_index, right_index): ... + def get_placeholder(self, key: int) -> str: ... + def store_tag(self, tag: str, attrs: list[Any], left_index: int, right_index: int) -> str: ... class Registry: def __init__(self) -> None: ...