betodealmeida / shillelagh

Making it easy to query APIs via SQL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Internal TypeVar on Field is Overly Strict

cancan101 opened this issue · comments

The Internal TypeVar on Fields should probably allow Any types rather than just the list of supported External values

Internal = TypeVar(
"Internal",
float,
int,
str,
bool,
datetime.date,
datetime.datetime,
datetime.time,
datetime.timedelta,
bytes,
)

i.e. this corresponds to what the API returns which can be broader than the list offered. For example, APIs might use Lists or even Dicts to represent (scalar) values.