Varia's website
https://varia.zone
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
246 B
12 lines
246 B
2 weeks ago
|
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 = {}
|