-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
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
| 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
)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels