diff --git a/src/crate/client/converter.py b/src/crate/client/converter.py index 37c70ae3..c4080b52 100644 --- a/src/crate/client/converter.py +++ b/src/crate/client/converter.py @@ -29,8 +29,7 @@ from enum import Enum from typing import Any, Callable, Dict, List, Optional, Tuple, Union -InputVal = Any -ConverterFunction = Callable[[Optional[InputVal]], Optional[Any]] +ConverterFunction = Callable[[Optional[Any]], Optional[Any]] ConverterDefinition = Union[ConverterFunction, Tuple[ConverterFunction, "ConverterDefinition"]] ColTypesDefinition = Union[int, List[Union[int, "ColTypesDefinition"]]] @@ -53,7 +52,7 @@ def _to_datetime(value: Optional[float]) -> Optional[datetime]: return datetime.utcfromtimestamp(value / 1e3) -def _to_default(value: Optional[InputVal]) -> Optional[Any]: +def _to_default(value: Optional[Any]) -> Optional[Any]: return value