{"record":{"id":"543f8d34743bd0ce","repo":"windmill-labs/windmill","slug":"the-f-name-method-is-deprecated-and-may-b","errorCode":null,"errorMessage":"The '${f.__name__}' method is deprecated and may be removed in the future. Consider ${in_favor_of}","messagePattern":"The '(.+?)' method is deprecated and may be removed in the future\\. Consider (.+?)","errorType":"console","errorClass":"DeprecationWarning","httpStatus":null,"severity":"error","filePath":"python-client/wmill/wmill/client.py","lineNumber":1472,"sourceCode":"\n\n\ndef init_global_client(f):\n    @functools.wraps(f)\n    def wrapper(*args, **kwargs):\n        global _client\n        if _client is None:\n            _client = Windmill()\n        return f(*args, **kwargs)\n\n    return wrapper\n\n\ndef deprecate(in_favor_of: str):\n    def decorator(f):\n        @functools.wraps(f)\n        def wrapper(*args, **kwargs):\n            warnings.warn(\n                (\n                    f\"The '{f.__name__}' method is deprecated and may be removed in the future. \"\n                    f\"Consider {in_favor_of}\"\n                ),\n                DeprecationWarning,\n            )\n            return f(*args, **kwargs)\n\n        return wrapper\n\n    return decorator\n\n\n@init_global_client\ndef get_workspace() -> str:\n    \"\"\"Get the current workspace ID.\n\n    Returns:","sourceCodeStart":1454,"sourceCodeEnd":1490,"githubUrl":"https://github.com/windmill-labs/windmill/blob/e474e8803ce2ff5c2df09a58dab51d45f5c922ca/python-client/wmill/wmill/client.py#L1454-L1490","documentation":"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.","triggerScenarios":"Thrown at python-client/wmill/wmill/client.py:1472 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","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"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"e474e8803ce2ff5c2df09a58dab51d45f5c922ca","analyzedAt":"2026-09-03T12:38:19.024Z","contentChangedAt":"2026-09-03T12:38:19.024Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}