diff --git a/pylib/tools/hookslib.py b/pylib/tools/hookslib.py index 1ff3b7974..f8262aa92 100644 --- a/pylib/tools/hookslib.py +++ b/pylib/tools/hookslib.py @@ -36,8 +36,7 @@ class Hook: types = [] for arg in self.args or []: (name, type) = arg.split(":") - if "." in type: - type = '"' + type.strip() + '"' + type = '"' + type.strip() + '"' types.append(type) types_str = ", ".join(types) return f"Callable[[{types_str}], {self.return_type or 'None'}]"