Skip to content

Commit 86ed890

Browse files
committed
fixup! Use set instead of list for block level elements
1 parent d2aaef0 commit 86ed890

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markdown/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ def remove(self, element: str, /) -> None:
289289
self._list.remove(element)
290290
except ValueError:
291291
break
292-
# We raise ValueError for backwards compatibility.
292+
# We raise `ValueError` for backwards compatibility.
293293
try:
294294
self._set.remove(element)
295295
except KeyError:
@@ -332,7 +332,7 @@ def update(self, *others: set[str]) -> None:
332332

333333

334334
# Type it as `set[str]` to express our intent for it to be used as such.
335-
# We expliclitly lie here, so that users running type checkers will get
335+
# We explicitly lie here, so that users running type checkers will get
336336
# warnings when they use the container as a list. This is a very effective
337337
# way of communicating the change, and deprecating list-like usage.
338338
BLOCK_LEVEL_ELEMENTS: set[str] = _BlockLevelElements([

0 commit comments

Comments
 (0)