summaryrefslogtreecommitdiffstats
path: root/markdown_it/_compat.py
blob: 12df1aa6f1e3a516751b8473045579b04f190554 (plain)
1
2
3
4
5
6
7
8
9
10
from __future__ import annotations

from collections.abc import Mapping
import sys
from typing import Any

if sys.version_info >= (3, 10):
    DATACLASS_KWARGS: Mapping[str, Any] = {"slots": True}
else:
    DATACLASS_KWARGS: Mapping[str, Any] = {}