_compat.py 246 B

1234567891011
  1. from __future__ import annotations
  2. from collections.abc import Mapping
  3. import sys
  4. from typing import Any
  5. DATACLASS_KWARGS: Mapping[str, Any]
  6. if sys.version_info >= (3, 10):
  7. DATACLASS_KWARGS = {"slots": True}
  8. else:
  9. DATACLASS_KWARGS = {}