From 39f273956c7dcf6d42d3197791ef76371e24cabc Mon Sep 17 00:00:00 2001 From: 8rulerstar <190670431+8rulerstar@users.noreply.github.com> Date: Wed, 16 Sep 2026 10:32:32 +0900 Subject: [PATCH 1/2] fix(azure): resolve mypy call-overload error on NIC creation The Azure SDK types the `parameters` argument of `network_interfaces.begin_create_or_update` as a `NetworkInterface` model or raw bytes, while this module builds and passes an ARM-shaped dict. The call works at runtime, so narrow the ignore to that one overload error rather than changing what is sent. Fixes GH-531 --- pycloudlib/azure/instance.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pycloudlib/azure/instance.py b/pycloudlib/azure/instance.py index b7a288a0..19c187c4 100644 --- a/pycloudlib/azure/instance.py +++ b/pycloudlib/azure/instance.py @@ -290,7 +290,10 @@ def add_network_interface(self, **kwargs) -> str: "tags": None, } nic_name = f"{self.name}-nic-{us}" - nic_poller = self._network_client.network_interfaces.begin_create_or_update( + # The SDK types `parameters` as a `NetworkInterface` model (or raw bytes), + # but it also accepts the ARM-shaped dict we build above, which is what the + # rest of this module passes. Ignore the narrower overload, not the call. + nic_poller = self._network_client.network_interfaces.begin_create_or_update( # type: ignore[call-overload] self._instance["rg_name"], nic_name, default_config, From 4dd757ef602ed83498bbfda4e882c9f58a3aaf8a Mon Sep 17 00:00:00 2001 From: 8rulerstar <190670431+8rulerstar@users.noreply.github.com> Date: Thu, 17 Sep 2026 09:02:10 +0900 Subject: [PATCH 2/2] chore: bump version to 1!11.1.8 --- VERSION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 1629e1f3..94acd658 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1!11.1.7 +1!11.1.8