Coverage for virtualization/graphql/filter_mixins.py: 88%
15 statements
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
« prev ^ index » next coverage.py v7.15.2, created at 2026-10-10 18:35 +0000
1from dataclasses import dataclass
2from typing import TYPE_CHECKING, Annotated
4import strawberry
5import strawberry_django
6from strawberry.scalars import ID
7from strawberry_django import StrFilterLookup
9if TYPE_CHECKING: 9 ↛ 10line 9 didn't jump to line 10 because the condition on line 9 was never true
10 from .filters import VirtualMachineFilter
12__all__ = (
13 'VMComponentFilterMixin',
14)
17@dataclass
18class VMComponentFilterMixin:
19 virtual_machine: Annotated['VirtualMachineFilter', strawberry.lazy('virtualization.graphql.filters')] | None = (
20 strawberry_django.filter_field()
21 )
22 virtual_machine_id: ID | None = strawberry_django.filter_field()
23 name: StrFilterLookup | None = strawberry_django.filter_field()
24 description: StrFilterLookup | None = strawberry_django.filter_field()