From 326c0bd9383101da2fb37a852da4589c17471dc7 Mon Sep 17 00:00:00 2001 From: nikki everett Date: Wed, 10 Apr 2024 09:38:32 -0500 Subject: [PATCH] copy changes over from flytesnacks#1553 Signed-off-by: nikki everett --- docs/user_guide/data_types_and_io/dataclass.md | 3 +++ docs/user_guide/data_types_and_io/index.md | 3 +-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/user_guide/data_types_and_io/dataclass.md b/docs/user_guide/data_types_and_io/dataclass.md index fdb9f1d992..8cf4449e21 100644 --- a/docs/user_guide/data_types_and_io/dataclass.md +++ b/docs/user_guide/data_types_and_io/dataclass.md @@ -35,6 +35,9 @@ If you're using Flytekit version below v1.10, you'll need to decorate with `@dat `from dataclass_json import dataclass_json` instead of inheriting from Mashumaro's `DataClassJSONMixin`. ::: +If you're using Flytekit version >= v1.11.1, you don't need to decorate with `@dataclass_json` or +inherit from Mashumaro's `DataClassJSONMixin`. + To begin, import the necessary dependencies. ```{code-cell} diff --git a/docs/user_guide/data_types_and_io/index.md b/docs/user_guide/data_types_and_io/index.md index f55aec69b4..d03df92804 100644 --- a/docs/user_guide/data_types_and_io/index.md +++ b/docs/user_guide/data_types_and_io/index.md @@ -99,8 +99,7 @@ Here's a breakdown of these mappings: * - ``@dataclass`` - ``Struct`` - Automatic - - The class should be a pure value class that inherits from Mashumaro's DataClassJSONMixin, - and be annotated with the ``@dataclass`` decorator. + - The class should be a pure value class annotated with the ``@dataclass`` decorator. * - ``np.ndarray`` - File - Automatic