From bc433437e295e77404bfb146e854cd7484b46476 Mon Sep 17 00:00:00 2001 From: Owen Kephart Date: Mon, 23 Dec 2024 11:20:26 -0500 Subject: [PATCH] [core-api][experimental] DataVersion assorted APIs --- .../dagster/dagster/_core/definitions/data_version.py | 4 ++-- python_modules/dagster/dagster/_core/definitions/events.py | 4 ++-- .../dagster/dagster/_core/definitions/resource_definition.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/python_modules/dagster/dagster/_core/definitions/data_version.py b/python_modules/dagster/dagster/_core/definitions/data_version.py index dd3070a8652b4..9252f5e657f1b 100644 --- a/python_modules/dagster/dagster/_core/definitions/data_version.py +++ b/python_modules/dagster/dagster/_core/definitions/data_version.py @@ -16,7 +16,7 @@ from typing_extensions import Final from dagster import _check as check -from dagster._annotations import deprecated, experimental +from dagster._annotations import beta, deprecated from dagster._core.loader import LoadingContext from dagster._utils.cached_method import cached_method @@ -63,7 +63,7 @@ def __new__( ) -@experimental +@beta class DataVersionsByPartition( NamedTuple( "_DataVersionsByPartition", [("data_versions_by_partition", Mapping[str, DataVersion])] diff --git a/python_modules/dagster/dagster/_core/definitions/events.py b/python_modules/dagster/dagster/_core/definitions/events.py index d9db32c882b55..246d281580d6d 100644 --- a/python_modules/dagster/dagster/_core/definitions/events.py +++ b/python_modules/dagster/dagster/_core/definitions/events.py @@ -19,7 +19,7 @@ from typing_extensions import Self import dagster._check as check -from dagster._annotations import PublicAttr, deprecated, experimental_param, public +from dagster._annotations import PublicAttr, beta_param, deprecated, public from dagster._core.definitions.asset_key import ( AssetKey as AssetKey, CoercibleToAssetKey as CoercibleToAssetKey, @@ -91,7 +91,7 @@ def with_metadata(self, metadata: Optional[Mapping[str, RawMetadataValue]]) -> S T = TypeVar("T") -@experimental_param(param="data_version") +@beta_param(param="data_version") class Output(Generic[T], EventWithMetadata): """Event corresponding to one of an op's outputs. diff --git a/python_modules/dagster/dagster/_core/definitions/resource_definition.py b/python_modules/dagster/dagster/_core/definitions/resource_definition.py index eb3a359db0a5e..b33d1c7b0eb89 100644 --- a/python_modules/dagster/dagster/_core/definitions/resource_definition.py +++ b/python_modules/dagster/dagster/_core/definitions/resource_definition.py @@ -16,7 +16,7 @@ from typing_extensions import TypeAlias import dagster._check as check -from dagster._annotations import experimental_param, public +from dagster._annotations import beta_param, public from dagster._core.decorator_utils import ( format_docstring_for_description, get_function_params, @@ -56,7 +56,7 @@ ] -@experimental_param(param="version") +@beta_param(param="version") class ResourceDefinition(AnonymousConfigurableDefinition, IHasInternalInit): """Core class for defining resources.