From b5660f04eef8affa5cb197047eb79fb84332cda3 Mon Sep 17 00:00:00 2001 From: mbaruh Date: Fri, 22 Apr 2022 00:01:17 +0300 Subject: Type-hint `ignore_module` --- botcore/utils/_extensions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/botcore/utils/_extensions.py b/botcore/utils/_extensions.py index 5614b7ec..536a0715 100644 --- a/botcore/utils/_extensions.py +++ b/botcore/utils/_extensions.py @@ -20,7 +20,7 @@ def unqualify(name: str) -> str: return name.rsplit(".", maxsplit=1)[-1] -def ignore_module(module) -> bool: +def ignore_module(module: pkgutil.ModuleInfo) -> bool: """Return whether the module with name `name` should be ignored.""" return any(name.startswith("_") for name in module.name.split(".")) -- cgit v1.2.3