mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-09-30 07:40:12 +03:00
fix(typing): resolve mypy errors in schemas.controller.appliances
This commit is contained in:
parent
d027146fb9
commit
7439e91f5a
@ -782,7 +782,7 @@ Appliance = ApplianceUnion
|
||||
# Create a validator wrapper for convenience
|
||||
from pydantic import TypeAdapter
|
||||
|
||||
_appliance_validator = TypeAdapter(ApplianceUnion)
|
||||
_appliance_validator: TypeAdapter[Union[ApplianceV1_6, ApplianceV8]] = TypeAdapter(ApplianceUnion)
|
||||
|
||||
|
||||
class ApplianceModel:
|
||||
|
||||
@ -383,7 +383,6 @@ module = [
|
||||
"gns3server.schemas.compute.nat_nodes", # 1
|
||||
"gns3server.schemas.compute.qemu_nodes", # 1
|
||||
"gns3server.schemas.compute.virtualbox_nodes", # 2
|
||||
"gns3server.schemas.controller.appliances", # 1
|
||||
"gns3server.schemas.controller.computes", # 6
|
||||
"gns3server.schemas.controller.nodes", # 3
|
||||
"gns3server.schemas.controller.projects", # 2
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user