mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-15 08:12:18 -06:00
* Enable E501 rule * Configure ruff formatter * Reformat migration files to fix line length violations * Fix various E501 errors * Move table template code to template_code.py & ignore E501 errors * Reformat raw SQL
This commit is contained in:
@@ -482,7 +482,9 @@ class LocationType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, Organi
|
||||
return self.cluster_set.all()
|
||||
|
||||
@strawberry_django.field
|
||||
def circuit_terminations(self) -> List[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]:
|
||||
def circuit_terminations(self) -> List[
|
||||
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
||||
]:
|
||||
return self.circuit_terminations.all()
|
||||
|
||||
|
||||
@@ -728,7 +730,9 @@ class RegionType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
||||
return self.cluster_set.all()
|
||||
|
||||
@strawberry_django.field
|
||||
def circuit_terminations(self) -> List[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]:
|
||||
def circuit_terminations(self) -> List[
|
||||
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
||||
]:
|
||||
return self.circuit_terminations.all()
|
||||
|
||||
|
||||
@@ -760,7 +764,9 @@ class SiteType(VLANGroupsMixin, ImageAttachmentsMixin, ContactsMixin, NetBoxObje
|
||||
return self.cluster_set.all()
|
||||
|
||||
@strawberry_django.field
|
||||
def circuit_terminations(self) -> List[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]:
|
||||
def circuit_terminations(self) -> List[
|
||||
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
||||
]:
|
||||
return self.circuit_terminations.all()
|
||||
|
||||
|
||||
@@ -784,7 +790,9 @@ class SiteGroupType(VLANGroupsMixin, ContactsMixin, OrganizationalObjectType):
|
||||
return self.cluster_set.all()
|
||||
|
||||
@strawberry_django.field
|
||||
def circuit_terminations(self) -> List[Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]]:
|
||||
def circuit_terminations(self) -> List[
|
||||
Annotated["CircuitTerminationType", strawberry.lazy('circuits.graphql.types')]
|
||||
]:
|
||||
return self.circuit_terminations.all()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user