File: _compat.py

package info (click to toggle)
markdown-it-py 3.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,780 kB
  • sloc: python: 5,214; xml: 39; sh: 29; makefile: 24
file content (11 lines) | stat: -rw-r--r-- 246 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
from __future__ import annotations

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

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