From 7562a5f5cbe85be5cc39eacafe99ff46ebf45bb4 Mon Sep 17 00:00:00 2001 From: John Mulligan Date: Tue, 28 Mar 2023 17:07:04 -0400 Subject: [PATCH] pybind/mgr: add a type annotation to the extra_args dict This change makes this file pass mypy checking on mypy 0.981. Signed-off-by: John Mulligan (cherry picked from commit bc65da0acdfbe99d847f8f304eb1e470b072561b) --- src/pybind/mgr/mgr_module.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pybind/mgr/mgr_module.py b/src/pybind/mgr/mgr_module.py index b8947bee381..a12d3d448e8 100644 --- a/src/pybind/mgr/mgr_module.py +++ b/src/pybind/mgr/mgr_module.py @@ -342,7 +342,7 @@ def _extract_target_func( wrapped = getattr(f, "__wrapped__", None) if not wrapped: return f, {} - extra_args = {} + extra_args: Dict[str, Any] = {} while wrapped is not None: extra_args.update(getattr(f, "extra_args", {})) f = wrapped -- 2.47.3