From 154cf67dadb9e09581f1ee892357ae903597c8c7 Mon Sep 17 00:00:00 2001 From: drbh Date: Fri, 19 Jul 2024 17:24:35 +0000 Subject: [PATCH] fix: adjust syntax to avoid circular import --- clients/python/text_generation/__init__.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/clients/python/text_generation/__init__.py b/clients/python/text_generation/__init__.py index 57359f22..8444a08e 100644 --- a/clients/python/text_generation/__init__.py +++ b/clients/python/text_generation/__init__.py @@ -18,16 +18,15 @@ from text_generation.inference_api import InferenceAPIClient, InferenceAPIAsyncC __version__ = "0.7.0" -DEPRECATION_WARNING = ( - "`text_generation` clients are deprecated and will be removed in the near future. " - "Please use the `InferenceClient` from the `huggingface_hub` package instead." -) - __all__ = [ "Client", "AsyncClient", "InferenceAPIClient", "InferenceAPIAsyncClient", - "DEPRECATION_WARNING", ] + +DEPRECATION_WARNING = ( + "`text_generation` clients are deprecated and will be removed in the near future. " + "Please use the `InferenceClient` from the `huggingface_hub` package instead." +)