Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions markdown_it/rules_inline/state_inline.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
from __future__ import annotations

from collections import namedtuple
from dataclasses import dataclass
from typing import TYPE_CHECKING, Any, Literal
from typing import TYPE_CHECKING, Any, Literal, NamedTuple

from ..common.utils import isMdAsciiPunct, isPunctChar, isWhiteSpace
from ..ruler import StateBase
Expand Down Expand Up @@ -36,7 +35,10 @@ class Delimiter:
level: bool | None = None


Scanned = namedtuple("Scanned", ["can_open", "can_close", "length"])
class Scanned(NamedTuple):
can_open: bool
can_close: bool
length: int


class StateInline(StateBase):
Expand Down