Skip to content

Commit

Permalink
Please mypy about user_data possibly being None
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosNihelton committed Jul 11, 2024
1 parent ee519c9 commit 34f203d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloudinit/sources/DataSourceWSL.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,8 @@ def _get_data(self) -> bool:
# That's the reason for not using util.mergemanydict().
merged: dict = {}
overridden_keys: typing.List[str] = []
# We've already checked, this is just to please mypy.
assert user_data is not None
user_tags = (
user_data.get("landscape", {}).get("client", {}).get("tags")
)
Expand Down

0 comments on commit 34f203d

Please sign in to comment.