Skip to content

Commit

Permalink
refactor: finish typing modernization
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleKing committed Jan 24, 2024
1 parent 8b967a8 commit 7141f43
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mdformat_admon/factories/_factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
from __future__ import annotations

import re
from collections.abc import Generator, Sequence
from contextlib import contextmanager, suppress
from typing import TYPE_CHECKING, Callable, Generator, NamedTuple, Sequence
from typing import TYPE_CHECKING, Callable, NamedTuple

from markdown_it import MarkdownIt
from markdown_it.rules_block import StateBlock
Expand Down Expand Up @@ -126,8 +127,7 @@ def parse_possible_whitespace_admon(
marker_len = max_marker_len
while marker_len > 0:
marker_pos = start + marker_len
markup = state.src[start:marker_pos]
if markup in markers:
if (markup := state.src[start:marker_pos]) in markers:
marker = markup
break
marker_len -= 1
Expand Down

0 comments on commit 7141f43

Please sign in to comment.