Skip to content
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions ldclient/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
from dataclasses import dataclass
from threading import Event
from typing import Callable, List, Optional, Protocol, Set, TypeVar
import warnings

from ldclient.feature_store import InMemoryFeatureStore
from ldclient.hook import Hook
Expand Down Expand Up @@ -357,8 +358,11 @@ def copy_with_new_sdk_key(self, new_sdk_key: str) -> 'Config':
"""Returns a new ``Config`` instance that is the same as this one, except for having a different SDK key.
The key will not be updated if the provided key contains invalid characters.

DEPRECATED: This method is deprecated and will be removed in a future version.

:param new_sdk_key: the new SDK key
"""
warnings.warn("copy_with_new_sdk_key is deprecated and will be removed in a future version", DeprecationWarning)
Comment thread
cursor[bot] marked this conversation as resolved.
Outdated
return Config(
sdk_key=new_sdk_key,
base_uri=self.__base_uri,
Expand Down
Loading