Skip to content

Commit fb2a74a

Browse files
committed
Revert a few
1 parent 39935ed commit fb2a74a

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

markdown/extensions/admonition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, parser: blockparser.BlockParser):
5959
super().__init__(parser)
6060

6161
self.current_sibling: etree.Element | None = None
62-
self.content_indent = 0
62+
self.content_indention = 0
6363

6464
def parse_content(self, parent: etree.Element, block: str) -> tuple[etree.Element | None, str, str]:
6565
"""Get sibling admonition.

markdown/extensions/codehilite.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@
2727
from typing import TYPE_CHECKING, Callable, Any
2828

2929
if TYPE_CHECKING: # pragma: no cover
30-
from markdown import Markdown
3130
import xml.etree.ElementTree as etree
3231

3332
try: # pragma: no cover
@@ -255,7 +254,6 @@ class HiliteTreeprocessor(Treeprocessor):
255254
""" Highlight source code in code blocks. """
256255

257256
config: dict[str, Any]
258-
md: Markdown
259257

260258
def code_unescape(self, text: str) -> str:
261259
"""Unescape code."""

markdown/extensions/fenced_code.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def handle_attrs(self, attrs: Iterable[tuple[str, str]]) -> tuple[str, list[str]
159159
""" Return tuple: `(id, [list, of, classes], {configs})` """
160160
id = ''
161161
classes = []
162-
configs: dict[str, Any] = {}
162+
configs = {}
163163
for k, v in attrs:
164164
if k == 'id':
165165
id = v

markdown/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from xml.etree.ElementTree import ProcessingInstruction
4949
from xml.etree.ElementTree import Comment, ElementTree, Element, QName, HTML_EMPTY
5050
import re
51-
from typing import Callable, Iterable, Literal, NoReturn
51+
from typing import Callable, Literal, NoReturn
5252

5353
__all__ = ['to_html_string', 'to_xhtml_string']
5454

@@ -136,7 +136,7 @@ def _serialize_html(write: Callable[[str], None], elem: Element, format: Literal
136136
else:
137137
raise ValueError('QName objects must define a tag.')
138138
write("<" + tag)
139-
items: Iterable[tuple[str, str]] = elem.items()
139+
items = elem.items()
140140
if items:
141141
items = sorted(items) # lexical order
142142
for k, v in items:

0 commit comments

Comments
 (0)