Mohith
Mohith
Took `cloudinit.templater` and `tests.unittests.test_templating`: #6989 removes both from the pyproject override list. Both came down to a single wrong annotation. `JinjaSyntaxParsingException.format_error_message` declared `line_number: str`, but the only production caller, `__str__`,...
Took `cloudinit.sources.helpers.ec2` in #6995. Two empty collections in `MetadataMaterializer._parse` that mypy cannot infer element types for. Annotated them as `Dict[str, str]` and `List[str]` based on what the loop below actually...
Took `cloudinit.net.cmdline` in #7004. One empty dict in `config_from_klibc_net_cfg` that mypy cannot infer element types for. Annotated it as `Dict[str, Dict[str, Any]]` based on the `{"files": [...], "entry": {...}}` value...
Took `cloudinit.distros.ug_util` in #7024. Three empty collections in `_normalize_groups` and `_normalize_users` that mypy cannot infer element types for. `c_grp_cfg` is `Dict[str, List[str]]` and `users` is `Dict[str, Dict[str, Any]]`, both from...
Also took `cloudinit.user_data` in #7025. Two of its three errors are in `_do_include`: `include_once_fn` is only assigned under `if include_once_on`, but the guard below tested `include_once_on`, which mypy cannot connect...
Took `cloudinit.config.modules` in #7039. Two errors, and they turned out to be related. `run_section` unpacked each `ModuleDetails` and then rebuilt it as a plain list before passing it to `_run_modules`,...
Took `cloudinit.sources.DataSourceCloudStack` in #7088. Two errors. `seed_ret` is an empty dict handed to `util.read_optional_seed`, which fills `user-data`, `meta-data`, `vendor-data` and `network-config`, so it is `Dict[str, Any]`. The second is the...
I would like to take `cloudinit.net.ephemeral` next. I checked that there is no open PR touching `cloudinit/net/ephemeral.py` and no existing claim for it in this thread. Removing it from the...
PR is up: #7092. All five errors resolved, no signature changes. `tox -e py3` and `tox -e check_format` are green on the branch.
I'll take `cloudinit.net.network_state` next. PR to follow shortly.