Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jhamon committed Sep 17, 2024
1 parent cfbd722 commit f3b2bab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 1 addition & 4 deletions pinecone/data/features/bulk_import.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 3 additions & 0 deletions pinecone/utils/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
):
Expand Down

0 comments on commit f3b2bab

Please sign in to comment.