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: