Commits vergleichen

..

Keine gemeinsamen Commits. "85880d286786e5a64a03273d174a96048b947448" und "8190ee94d3fedc15897b579cfe1929c374136d6d" haben vollständig unterschiedliche Historien.

3 geänderte Dateien mit 3 neuen und 14 gelöschten Zeilen

Datei anzeigen

@ -1,4 +0,0 @@
---
minor_changes:
- Added an type hint to the update_doc function
- Added Type hint to the dictionary argument of the diff method

Datei anzeigen

@ -1,6 +1,6 @@
import pathlib
from copy import deepcopy
from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, Union, overload, TypedDict
from typing import Any, Callable, ClassVar, Dict, NoReturn, Optional, Type, TypeVar, Union, overload
from ansible.utils.display import Display
import ansible.module_utils.basic as basic
@ -18,13 +18,6 @@ __all__ = (
T = TypeVar("T")
class TypedDiff(TypedDict):
before: str
after: str
before_header: Optional[str] = None
after_header: Optional[str] = None
def docify(input: Union[dict, AnsibleParameter]) -> dict:
options = dict()
for name, help in input.items():
@ -89,7 +82,7 @@ class AnsibleModule(object):
self.result[key] = value
@overload
def diff(self, diff: TypedDiff): # pragma: nocover
def diff(self, diff: Dict[str, str]): # pragma: nocover
pass
@overload

Datei anzeigen

@ -10,7 +10,7 @@ moduledir = pathlib.Path("plugins/modules")
regex = re.compile("DOCUMENTATION *= *r?(?P<quote>\"{3}|'{3})(---)?.*?(?P=quote)", re.MULTILINE | re.DOTALL)
def main() -> None:
def main():
try:
modules = list(moduledir.iterdir())
except: