fix(typing): resolve mypy errors in controller.appliance

This commit is contained in:
Mark Paronyan 2026-09-28 04:56:53 +00:00
parent 2542ad4647
commit a7b32ca6df
No known key found for this signature in database
GPG Key ID: 8DC7338A87FE22F8
2 changed files with 4 additions and 5 deletions

View File

@ -51,6 +51,10 @@ class Appliance:
def symbol(self): def symbol(self):
return self._data.get("symbol") return self._data.get("symbol")
@symbol.setter
def symbol(self, new_symbol):
self._data["symbol"] = new_symbol
@property @property
def name(self): def name(self):
return self._data.get("name") return self._data.get("name")
@ -63,10 +67,6 @@ class Appliance:
def versions(self): def versions(self):
return self._data.get("versions") return self._data.get("versions")
@symbol.setter
def symbol(self, new_symbol):
self._data["symbol"] = new_symbol
@property @property
def type(self): def type(self):

View File

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