From c98cae56893d9ee8b8b30d39d490f1b9e8d10ea7 Mon Sep 17 00:00:00 2001 From: Alex Langenfeld Date: Tue, 9 Jan 2024 14:53:05 -0600 Subject: [PATCH] [dagster-helm] 3.11 str enum compat (#19113) in 3.11 these f strings change for the enum https://github.com/python/cpython/issues/100458 so just do `.value` ## How I Tested These Changes bk passes --- helm/dagster/schema/schema/charts/utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helm/dagster/schema/schema/charts/utils/utils.py b/helm/dagster/schema/schema/charts/utils/utils.py index b84cd365bbedb..2b273e0aa4079 100644 --- a/helm/dagster/schema/schema/charts/utils/utils.py +++ b/helm/dagster/schema/schema/charts/utils/utils.py @@ -47,7 +47,7 @@ def schema_extra(schema, model): value["anyOf"].append({"type": "null"}) -def create_definition_ref(definition: str, version: str = SupportedKubernetes.V1_18) -> str: +def create_definition_ref(definition: str, version: str = SupportedKubernetes.V1_18.value) -> str: return ( f"https://kubernetesjsonschema.dev/v{version}/_definitions.json#/definitions/{definition}" )