This PR updates dataset preview types to support deferred type annotations, from __future__ import annotations.
With from __future__ import annotations, annotations are stored as strings and resolved when needed rather than immediately. This affects how annotations are accessed in Kedro-Viz particularly in how we retrieve preview_type for datasets.
Development notes
Adjusted set_preview_type in the backend to accommodate type annotations as strings.
Description
Related to: https://github.com/kedro-org/kedro-plugins/pull/595 and https://github.com/kedro-org/kedro-viz/issues/1622
This PR updates dataset preview types to support deferred type annotations,
from __future__ import annotations
.With
from __future__ import annotations
, annotations are stored as strings and resolved when needed rather than immediately. This affects how annotations are accessed in Kedro-Viz particularly in how we retrievepreview_type
for datasets.Development notes
set_preview_type
in the backend to accommodate type annotations as strings.Checklist
RELEASE.md
file