mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-10 14:05:07 +00:00
Apply suggestions from code review.
Co-authored-by: Alexei Znamensky <103110+russoz@users.noreply.github.com>
This commit is contained in:
parent
65f546b4fd
commit
f6eb6d743d
5 changed files with 11 additions and 11 deletions
|
|
@ -204,7 +204,7 @@ class VarDict:
|
|||
def output(self, verbosity: int = 0) -> dict[str, t.Any]:
|
||||
return {n: v.value for n, v in self.__vars__.items() if v.output and v.is_visible(verbosity)}
|
||||
|
||||
def diff(self, verbosity: int = 0) -> dict[str, t.Any] | None:
|
||||
def diff(self, verbosity: int = 0) -> dict[str, dict[str, t.Any]] | None:
|
||||
diff_results = [
|
||||
(n, v.diff_result) for n, v in self.__vars__.items() if v.diff_result and v.is_visible(verbosity)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue