From f3b2bab4301f7476d8f96a624be5b30497be1502 Mon Sep 17 00:00:00 2001 From: Jen Hamon Date: Tue, 17 Sep 2024 12:45:12 -0400 Subject: [PATCH] Cleanup --- pinecone/data/features/bulk_import.py | 5 +---- pinecone/utils/decorators.py | 3 +++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pinecone/data/features/bulk_import.py b/pinecone/data/features/bulk_import.py index 1b5d91c3..ab962998 100644 --- a/pinecone/data/features/bulk_import.py +++ b/pinecone/data/features/bulk_import.py @@ -1,8 +1,5 @@ -import warnings - from enum import Enum -from functools import wraps -from typing import Optional, Union, Literal, Iterator, List +from typing import Optional, Literal, Iterator, List from pinecone.utils.decorators import prerelease_feature from pinecone.config.config import ConfigBuilder diff --git a/pinecone/utils/decorators.py b/pinecone/utils/decorators.py index 290c6905..299f8d42 100644 --- a/pinecone/utils/decorators.py +++ b/pinecone/utils/decorators.py @@ -2,11 +2,14 @@ from functools import wraps from typing import Optional, Callable + class PineconePrereleaseWarning(UserWarning): pass + warnings.simplefilter("once", PineconePrereleaseWarning) + def prerelease_feature( message: str = "This is a pre-release feature and may change in the future.", api_version: Optional[str] = None ):