Skip to content

Commit 22f56fd

Browse files
committed
NLU-2966: Fix failing tests
1 parent cd9ba48 commit 22f56fd

File tree

1 file changed

+3
-3
lines changed
  • Python/libraries/datatypes-timex-expression/datatypes_timex_expression

1 file changed

+3
-3
lines changed

Python/libraries/datatypes-timex-expression/datatypes_timex_expression/timex_helpers.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ def timex_datetime_add(start, duration):
164164
@staticmethod
165165
def date_from_timex(timex):
166166
return date(
167-
timex.year if timex.year is not None else 2001,
168-
timex.month if timex.month is not None else 1,
169-
timex.day_of_month if timex.day_of_month is not None else 1
167+
int(timex.year) if timex.year is not None else 2001,
168+
int(timex.month) if timex.month is not None else 1,
169+
int(timex.day_of_month) if timex.day_of_month is not None else 1
170170
)
171171

172172
@staticmethod

0 commit comments

Comments
 (0)