diff options
author | Chris Patterson <cpatterson@microsoft.com> | 2022-02-11 23:40:45 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-11 22:40:45 -0600 |
commit | 0b41b359a70bbbf3a648862a9b849d60b9ff6c3b (patch) | |
tree | c53959a1e5346db352e5b5a14a47180092c3e3c4 /cloudinit/distros/networking.py | |
parent | a62d04e081831be82b3d26c94fee5aa40d7c0802 (diff) | |
download | vyos-cloud-init-0b41b359a70bbbf3a648862a9b849d60b9ff6c3b.tar.gz vyos-cloud-init-0b41b359a70bbbf3a648862a9b849d60b9ff6c3b.zip |
sources/azure: address mypy/pyright typing complaints (#1245)
Raise runtime errors for unhandled cases which would cause other
exceptions. Ignore types for a few cases where a non-trivial
refactor would be required to prevent the warning.
Signed-off-by: Chris Patterson <cpatterson@microsoft.com>
Diffstat (limited to 'cloudinit/distros/networking.py')
-rw-r--r-- | cloudinit/distros/networking.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cloudinit/distros/networking.py b/cloudinit/distros/networking.py index e18a48ca..b24b6233 100644 --- a/cloudinit/distros/networking.py +++ b/cloudinit/distros/networking.py @@ -1,6 +1,7 @@ import abc import logging import os +from typing import List, Optional from cloudinit import net, subp, util @@ -22,7 +23,7 @@ class Networking(metaclass=abc.ABCMeta): """ def __init__(self): - self.blacklist_drivers = None + self.blacklist_drivers: Optional[List[str]] = None def _get_current_rename_info(self) -> dict: return net._get_current_rename_info() |