fix(typing): resolve mypy errors in compute.iou.iou_vm

This commit is contained in:
Mark Paronyan 2026-09-28 04:44:31 +00:00
parent 8df25dec32
commit 4802c865fc
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 12 additions and 5 deletions

View File

@ -139,8 +139,8 @@ class IOUVM(BaseNode):
# Class-level caches shared across all IOU VM instances using the same image. # Class-level caches shared across all IOU VM instances using the same image.
# These avoid redundant subprocess calls during project loading when multiple # These avoid redundant subprocess calls during project loading when multiple
# IOU nodes use the same image. # IOU nodes use the same image.
_loader_cache = {} # image path -> loader command list _loader_cache: dict[str, list[str]] = {} # image path -> loader command list
_default_values_cache = {} # image path -> (ram, nvram) _default_values_cache: dict[str, tuple[int, int]] = {} # image path -> (ram, nvram)
""" """
IOU VM implementation. IOU VM implementation.
@ -464,7 +464,11 @@ class IOUVM(BaseNode):
) )
self._nvram = nvram self._nvram = nvram
@BaseNode.name.setter @property
def name(self):
return self._name
@name.setter
def name(self, new_name): def name(self, new_name):
""" """
Sets the name of this IOU VM. Sets the name of this IOU VM.
@ -949,7 +953,11 @@ class IOUVM(BaseNode):
return True return True
return False return False
@BaseNode.console_type.setter @property
def console_type(self):
return self._console_type
@console_type.setter
def console_type(self, new_console_type): def console_type(self, new_console_type):
""" """
Sets the console type for this IOU VM. Sets the console type for this IOU VM.

View File

@ -364,7 +364,6 @@ module = [
"gns3server.compute.docker.docker_vm", # 3 "gns3server.compute.docker.docker_vm", # 3
"gns3server.compute.docker.iol_docker_vm", # 3 "gns3server.compute.docker.iol_docker_vm", # 3
"gns3server.compute.dynamips.nodes.router", # 2 "gns3server.compute.dynamips.nodes.router", # 2
"gns3server.compute.iou.iou_vm", # 4
"gns3server.compute.iou.utils.iou_export", # 2 "gns3server.compute.iou.utils.iou_export", # 2
"gns3server.compute.iou.utils.iou_import", # 2 "gns3server.compute.iou.utils.iou_import", # 2
"gns3server.compute.project", # 1 "gns3server.compute.project", # 1