From 4e88a1003b3441044673dd53d7fea39014c9ae70 Mon Sep 17 00:00:00 2001 From: Andreas Motl Date: Wed, 12 Oct 2022 12:45:02 +0200 Subject: [PATCH] Data type converter: Remove custom type name vocabulary --- src/crate/client/converter.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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