1111from linode_api4 import util
1212from linode_api4 .common import load_and_validate_keys
1313from linode_api4 .errors import UnexpectedResponseError
14- from linode_api4 .objects import (
15- Base ,
16- DerivedBase ,
17- Image ,
18- JSONObject ,
19- Property ,
20- Region ,
21- )
22- from linode_api4 .objects .base import MappedObject
14+ from linode_api4 .objects .base import Base , MappedObject , Property
15+ from linode_api4 .objects .dbase import DerivedBase
2316from linode_api4 .objects .filtering import FilterableAttribute
24- from linode_api4 .objects .networking import IPAddress , IPv6Range , VPCIPAddress
25- from linode_api4 .objects .serializable import StrEnum
17+ from linode_api4 .objects .image import Image
18+ from linode_api4 .objects .networking import (
19+ Firewall ,
20+ IPAddress ,
21+ IPv6Range ,
22+ VPCIPAddress ,
23+ )
24+ from linode_api4 .objects .nodebalancer import NodeBalancer
25+ from linode_api4 .objects .region import Region
26+ from linode_api4 .objects .serializable import JSONObject , StrEnum
2627from linode_api4 .objects .vpc import VPC , VPCSubnet
2728from linode_api4 .paginated_list import PaginatedList
2829
@@ -1618,9 +1619,6 @@ def firewalls(self):
16181619 :returns: A List of Firewalls of the Linode Instance.
16191620 :rtype: List[Firewall]
16201621 """
1621- from linode_api4 .objects import ( # pylint: disable=import-outside-toplevel
1622- Firewall ,
1623- )
16241622
16251623 result = self ._client .get (
16261624 "{}/firewalls" .format (Instance .api_endpoint ), model = self
@@ -1640,9 +1638,6 @@ def nodebalancers(self):
16401638 :returns: A List of Nodebalancers of the Linode Instance.
16411639 :rtype: List[Nodebalancer]
16421640 """
1643- from linode_api4 .objects import ( # pylint: disable=import-outside-toplevel
1644- NodeBalancer ,
1645- )
16461641
16471642 result = self ._client .get (
16481643 "{}/nodebalancers" .format (Instance .api_endpoint ), model = self
0 commit comments