fix(typing): resolve mypy errors in compute.vpcs.vpcs_vm

This commit is contained in:
Mark Paronyan 2026-09-28 04:44:03 +00:00
parent a7350ae0c8
commit 2542ad4647
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 10 additions and 3 deletions

View File

@ -148,7 +148,11 @@ class VPCSVM(BaseNode):
vpcs_path = shutil.which(vpcs_path)
return vpcs_path
@BaseNode.name.setter
@property
def name(self):
return self._name
@name.setter
def name(self, new_name):
"""
Sets the name of this VPCS VM.
@ -358,7 +362,11 @@ class VPCSVM(BaseNode):
if self.is_running():
await self.reset_wrap_console()
@BaseNode.console_type.setter
@property
def console_type(self):
return self._console_type
@console_type.setter
def console_type(self, new_console_type):
"""
Sets the console type for this VPCS VM.

View File

@ -356,7 +356,6 @@ module = [
"gns3server.api.routes.controller.templates", # 10
"gns3server.api.routes.controller.users", # 14
"gns3server.compute.virtualbox.virtualbox_vm", # 1
"gns3server.compute.vpcs.vpcs_vm", # 2
"gns3server.controller.appliance", # 2
"gns3server.controller.appliance_manager", # 5
"gns3server.controller.project", # 2