From 4e09c9f4e57f1f39a48da435f31871fbcfbb0e89 Mon Sep 17 00:00:00 2001 From: Greg Koutsimpogiorgos Date: Wed, 4 Sep 2024 12:10:57 +0200 Subject: [PATCH] expr.endswith(".date()") --- singer_sdk/mapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/singer_sdk/mapper.py b/singer_sdk/mapper.py index eb9331f12..f50ea74a7 100644 --- a/singer_sdk/mapper.py +++ b/singer_sdk/mapper.py @@ -398,7 +398,7 @@ def _eval_type( if expr.startswith("bool("): return th.BooleanType() - if expr.startswith("datetime.date"): + if expr.startswith("datetime.date") or expr.endswith(".date()"): return th.DateType() if expr.startswith("datetime.datetime"):