From 4cfdb799f2ceb1c0ae2b65f4be6a7a834dac59d5 Mon Sep 17 00:00:00 2001 From: donbarbos Date: Sun, 11 Jan 2026 16:40:16 +0400 Subject: [PATCH] [inspect] Deprecate getcallargs function 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 55ae61617af7..c48d63bc4f32 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):