diff --git a/netbox/dcim/graphql/types.py b/netbox/dcim/graphql/types.py index 8e504d847..023f72be3 100644 --- a/netbox/dcim/graphql/types.py +++ b/netbox/dcim/graphql/types.py @@ -120,7 +120,7 @@ class ModularComponentTemplateType(ComponentTemplateType): ) class CableTerminationType(NetBoxObjectType): - termination: List[Annotated[Union[ + termination: Annotated[Union[ Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')], Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')], Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')], @@ -130,7 +130,7 @@ class CableTerminationType(NetBoxObjectType): Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')], Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')], Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')], - ], strawberry.union("CableTerminationTerminationType")]] + ], strawberry.union("CableTerminationTerminationType")] @strawberry_django.type( @@ -294,7 +294,7 @@ class InventoryItemTemplateType(ComponentTemplateType): child_items: List[Annotated["InventoryItemTemplateType", strawberry.lazy('dcim.graphql.types')]] - component: List[Annotated[Union[ + component: Annotated[Union[ Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')], Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')], Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')], @@ -302,7 +302,7 @@ class InventoryItemTemplateType(ComponentTemplateType): Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')], Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')], Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')], - ], strawberry.union("InventoryItemTemplateComponentType")]] + ], strawberry.union("InventoryItemTemplateComponentType")] @strawberry_django.type( @@ -423,7 +423,7 @@ class InventoryItemType(ComponentType): def parent(self) -> Annotated["InventoryItemType", strawberry.lazy('dcim.graphql.types')] | None: return self.parent - component: List[Annotated[Union[ + component: Annotated[Union[ Annotated["ConsolePortType", strawberry.lazy('dcim.graphql.types')], Annotated["ConsoleServerPortType", strawberry.lazy('dcim.graphql.types')], Annotated["FrontPortType", strawberry.lazy('dcim.graphql.types')], @@ -431,7 +431,7 @@ class InventoryItemType(ComponentType): Annotated["PowerOutletType", strawberry.lazy('dcim.graphql.types')], Annotated["PowerPortType", strawberry.lazy('dcim.graphql.types')], Annotated["RearPortType", strawberry.lazy('dcim.graphql.types')], - ], strawberry.union("InventoryItemComponentType")]] + ], strawberry.union("InventoryItemComponentType")] @strawberry_django.type( diff --git a/netbox/ipam/graphql/types.py b/netbox/ipam/graphql/types.py index 38bb6fcd6..6c269721e 100644 --- a/netbox/ipam/graphql/types.py +++ b/netbox/ipam/graphql/types.py @@ -196,10 +196,10 @@ class RoleType(OrganizationalObjectType): class RouteTargetType(NetBoxObjectType): tenant: Annotated["TenantType", strawberry.lazy('tenancy.graphql.types')] | None - exporting_l2vpns: List[Annotated["L2VPNType", strawberry.lazy('vpn.graphql.types')]] - exporting_vrfs: List[Annotated["VRFType", strawberry.lazy('ipam.graphql.types')]] - importing_vrfs: List[Annotated["VRFType", strawberry.lazy('ipam.graphql.types')]] importing_l2vpns: List[Annotated["L2VPNType", strawberry.lazy('vpn.graphql.types')]] + exporting_l2vpns: List[Annotated["L2VPNType", strawberry.lazy('vpn.graphql.types')]] + importing_vrfs: List[Annotated["VRFType", strawberry.lazy('ipam.graphql.types')]] + exporting_vrfs: List[Annotated["VRFType", strawberry.lazy('ipam.graphql.types')]] @strawberry_django.type(