From 380bc582e32cc833d3543ffff5822e5b34983ea3 Mon Sep 17 00:00:00 2001 From: Sebastian Tobie Date: Sat, 16 Mar 2024 09:28:26 +0100 Subject: [PATCH] added returntype --- changelogs/fragments/0.1.1.yml | 3 +++ src/ansible_module/update_doc.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/0.1.1.yml diff --git a/changelogs/fragments/0.1.1.yml b/changelogs/fragments/0.1.1.yml new file mode 100644 index 0000000..f9c6dab --- /dev/null +++ b/changelogs/fragments/0.1.1.yml @@ -0,0 +1,3 @@ +--- +minor_changes: + - Added an type hint to the update_doc function diff --git a/src/ansible_module/update_doc.py b/src/ansible_module/update_doc.py index 65da7a4..b001b52 100755 --- a/src/ansible_module/update_doc.py +++ b/src/ansible_module/update_doc.py @@ -10,7 +10,7 @@ moduledir = pathlib.Path("plugins/modules") regex = re.compile("DOCUMENTATION *= *r?(?P\"{3}|'{3})(---)?.*?(?P=quote)", re.MULTILINE | re.DOTALL) -def main(): +def main() -> None: try: modules = list(moduledir.iterdir()) except: