Skip to content
Open
Changes from all 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 @@ -4,6 +4,7 @@
Note that the same class can also be imported from the ``ldclient.client`` submodule.
"""

import warnings
from dataclasses import dataclass
from threading import Event
from typing import Callable, List, Optional, Protocol, Set, TypeVar
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, stacklevel=2)
return Config(
sdk_key=new_sdk_key,
base_uri=self.__base_uri,
Expand Down