kedro-org / kedro-viz

Visualise your Kedro data and machine-learning pipelines and track your experiments.
https://demo.kedro.org
Apache License 2.0
650 stars 107 forks source link

Support Deferred Type Annotations in Dataset Previews #1798

Closed SajidAlamQB closed 4 months ago

SajidAlamQB commented 4 months ago

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 retrieve preview_type for datasets.

Development notes

Checklist

SajidAlamQB commented 4 months ago

Reverted FE changes as they didn't have any effect and were causing the failures.