From 741238d712377788f126ba99c6dfcfdbb96dad3d Mon Sep 17 00:00:00 2001 From: "Hezhi (Helen) Xie" Date: Thu, 30 Jan 2025 07:58:53 -0800 Subject: [PATCH] Install typing-extensions v4.10.0 to fix Python test error (#2504) * update the version of typing-extensions Signed-off-by: helenxie-bit * update comment Signed-off-by: helenxie-bit --------- Signed-off-by: helenxie-bit --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 8820d472361..bd6ce2c4e64 100755 --- a/Makefile +++ b/Makefile @@ -160,10 +160,10 @@ prepare-pytest: pip install --prefer-binary -r cmd/suggestion/pbt/v1beta1/requirements.txt pip install --prefer-binary -r cmd/earlystopping/medianstop/v1beta1/requirements.txt pip install --prefer-binary -r cmd/metricscollector/v1beta1/tfevent-metricscollector/requirements.txt - # The sqlalchemy on which optuna depends requires typing-extensions>=4.6.0. - # REF: https://github.com/kubeflow/katib/pull/2251 + # `TypeIs` was introduced in typing-extensions 4.10.0, and torch 2.6.0 requires typing-extensions>=4.10.0. + # REF: https://github.com/kubeflow/katib/pull/2504 # TODO (tenzen-y): Once we upgrade libraries depended on typing-extensions==4.5.0, we can remove this line. - pip install typing-extensions==4.6.3 + pip install typing-extensions==4.10.0 prepare-pytest-testdata: ifeq ("$(wildcard $(TEST_TENSORFLOW_EVENT_FILE_PATH))", "")