1
0
Fork 0
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:
Felix Fontein 2025-12-01 07:16:21 +01:00 committed by GitHub
parent 65f546b4fd
commit f6eb6d743d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 11 additions and 11 deletions

View file

@ -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)
]