Skip to content

Commit

Permalink
Data type converter: Remove custom type name vocabulary
Browse files Browse the repository at this point in the history
  • Loading branch information
amotl committed Oct 12, 2022
1 parent 14a355d commit 4e88a10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/crate/client/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]]]

Expand All @@ -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


Expand Down

0 comments on commit 4e88a10

Please sign in to comment.