From 5a45a9a5bcec0c64f7fcaf3db92b9159cee05d9c Mon Sep 17 00:00:00 2001 From: Semyon Moroz Date: Sun, 11 Jan 2026 16:00:44 +0000 Subject: [PATCH] [inspect] Deprecate getcallargs function (#15258) Docs: https://docs.python.org/dev/library/inspect.html#inspect.getcallargs --- stdlib/inspect.pyi | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/inspect.pyi b/stdlib/inspect.pyi index 55ae61617..c48d63bc4 100644 --- a/stdlib/inspect.pyi +++ b/stdlib/inspect.pyi @@ -547,6 +547,7 @@ def formatargvalues( formatvalue: Callable[[Any], str] | None = ..., ) -> str: ... def getmro(cls: type) -> tuple[type, ...]: ... +@deprecated("Deprecated since Python 3.5. Use `Signature.bind` and `Signature.bind_partial` instead.") def getcallargs(func: Callable[_P, Any], /, *args: _P.args, **kwds: _P.kwargs) -> dict[str, Any]: ... class ClosureVars(NamedTuple):