mixins.py 408 B

123456789101112131415161718
  1. from typing import Annotated, List
  2. import strawberry
  3. __all__ = (
  4. 'IPAddressesMixin',
  5. 'VLANGroupsMixin',
  6. )
  7. @strawberry.type
  8. class IPAddressesMixin:
  9. ip_addresses: List[Annotated["IPAddressType", strawberry.lazy('ipam.graphql.types')]] # noqa: F821
  10. @strawberry.type
  11. class VLANGroupsMixin:
  12. vlan_groups: List[Annotated["VLANGroupType", strawberry.lazy('ipam.graphql.types')]] # noqa: F821