| 1 |
"""Constants for modules.""" |
| 2 |
|
| 3 |
from __future__ import annotations |
| 4 |
|
| 5 |
from collections.abc import Callable |
| 6 |
from typing import Any |
| 7 |
|
| 8 |
# A converter type |
| 9 |
MapConverterType = Callable[..., Any] | list[Callable[..., Any]] |
| 10 |
|
| 11 |
# A map value type - this value should be found and converted |
| 12 |
MapValueType = str | tuple[str] | tuple[str, MapConverterType] |
| 13 |
|
| 14 |
# A map replace type - this value should be found, renamed and converted |
| 15 |
MapReplaceType = ( |
| 16 |
str | tuple[str] | tuple[str, str] | tuple[str, str, MapConverterType] |
| 17 |
) |