<#1786 Add type transformer for datetime.date> Pul...
# flyte-github
c
#1786 Add type transformer for datetime.date Pull request opened by troychiu TL;DR As title Type ☐ Bug Fix ☑︎ Feature ☐ Plugin Are all requirements met? ☑︎ Code completed ☐ Smoke tested ☑︎ Unit tests added ☐ Code documentation added ☐ Any pending items have an associated Issue Complete description Hi community, This is my first pr in Flyte. I have followed the contribution guide and if there is anything I missed, feel free to leave a comment. I added a simple transformer for datetime.date. The
to_literal_transformer
convert datetime.date to datetime.datetime. The
from_literal_transformer
convert datetime.datetime to datetime.date. Also, I add corresponding tests to test_type_engine. Tracking Issue flyteorg/flyte#3026 Follow-up issue Add datetime.date to https://docs.flyte.org/projects/cookbook/en/latest/auto_examples/type_system/flyte_python_types.html#flytekit-to-flyte-type-mapping flyteorg/flytekit GitHub Actions: build (macos-latest, 3.10) GitHub Actions: build (macos-latest, 3.9) GitHub Actions: build (macos-latest, 3.8) GitHub Actions: build (windows-latest, 3.11) GitHub Actions: build (windows-latest, 3.9) GitHub Actions: build (windows-latest, 3.8) GitHub Actions: build (ubuntu-latest, 3.11) GitHub Actions: build (ubuntu-latest, 3.10) GitHub Actions: build (ubuntu-latest, 3.9) GitHub Actions: build (ubuntu-latest, 3.8) GitHub Actions: lint GitHub Actions: docs GitHub Actions: Docs Warnings 2 other checks have passed 2/15 successful checks
a