windmill-labs/windmill · error · DeprecationWarning
The '${f.__name__}' method is deprecated and may be removed
Error message
The '${f.__name__}' method is deprecated and may be removed in the future. Consider ${in_favor_of} What it means
Python DeprecationWarning emitted by the deprecate() decorator's wrapper in wmill's generated client: the called method is on its way out. The call still executes normally; the warning (once per warnings-filter policy) points to the replacement named in in_favor_of.
Source
Thrown at python-client/wmill/wmill/client.py:1472
def init_global_client(f):
@functools.wraps(f)
def wrapper(*args, **kwargs):
global _client
if _client is None:
_client = Windmill()
return f(*args, **kwargs)
return wrapper
def deprecate(in_favor_of: str):
def decorator(f):
@functools.wraps(f)
def wrapper(*args, **kwargs):
warnings.warn(
(
f"The '{f.__name__}' method is deprecated and may be removed in the future. "
f"Consider {in_favor_of}"
),
DeprecationWarning,
)
return f(*args, **kwargs)
return wrapper
return decorator
@init_global_client
def get_workspace() -> str:
"""Get the current workspace ID.
Returns:View on GitHub (pinned to e474e8803c)
Solutions
- Switch the call site to the replacement method suggested in the warning
- Filter DeprecationWarning only if third-party code you can't change triggers it
Defensive patterns
Strategy: fallback
When it happens
Trigger: Thrown at python-client/wmill/wmill/client.py:1472 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of windmill-labs/windmill@e474e8803c (2026-09-03).
Data as JSON: /api/errors/543f8d34743bd0ce.
Report an issue: GitHub.