Summary of the issue
Just showing the warning might not sufficient, atleast in python environment.
|
warnings.warn( |
|
"create_namespace is deprecated and will be removed in a future version. " |
|
"Use client.namespaces.create instead.", |
|
DeprecationWarning, |
|
stacklevel=2, |
|
) |
python interpreter ignore the warnings by default to end users, it may cause unintended frustrations to the team using deprecated methods.
Suggested solution:
Defining a custom warning would help avoiding the ignorance
import warnings
class MethodDeprecationWarning(UserWarning):
pass
warnings.warn(
"create_namespace() is deprecated",
category=MethodDeprecationWarning,
stacklevel=2
)
Summary of the issue
Just showing the warning might not sufficient, atleast in python environment.
moorcheh-python-sdk/moorcheh_sdk/_legacy_client.py
Lines 64 to 69 in c8240a4
python interpreter ignore the warnings by default to end users, it may cause unintended frustrations to the team using deprecated methods.
Suggested solution:
Defining a custom warning would help avoiding the ignorance