From bc65da0acdfbe99d847f8f304eb1e470b072561b 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 --- 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 2bbdb4bdd5c..48e682fff23 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.39.5