@@ -17,13 +17,13 @@ def get_id(self):
1717 return self .data ["id" ]
1818
1919 @classmethod
20- def get_entity_class (self ):
20+ def get_entity_class (cls ):
2121 return None
2222
2323
2424class ActionDelta (EntityDelta ):
2525 @classmethod
26- def get_entity_class (self ):
26+ def get_entity_class (cls ):
2727 from .action import Action
2828
2929 return Action
@@ -34,7 +34,7 @@ def get_id(self):
3434 return self .data ["name" ]
3535
3636 @classmethod
37- def get_entity_class (self ):
37+ def get_entity_class (cls ):
3838 from .application import Application
3939
4040 return Application
@@ -45,7 +45,7 @@ def get_id(self):
4545 return self .data ["tag" ]
4646
4747 @classmethod
48- def get_entity_class (self ):
48+ def get_entity_class (cls ):
4949 from .annotation import Annotation
5050
5151 return Annotation
@@ -56,15 +56,15 @@ def get_id(self):
5656 return self .data ["model-uuid" ]
5757
5858 @classmethod
59- def get_entity_class (self ):
59+ def get_entity_class (cls ):
6060 from .model import ModelInfo
6161
6262 return ModelInfo
6363
6464
6565class MachineDelta (EntityDelta ):
6666 @classmethod
67- def get_entity_class (self ):
67+ def get_entity_class (cls ):
6868 from .machine import Machine
6969
7070 return Machine
@@ -75,15 +75,15 @@ def get_id(self):
7575 return self .data ["name" ]
7676
7777 @classmethod
78- def get_entity_class (self ):
78+ def get_entity_class (cls ):
7979 from .unit import Unit
8080
8181 return Unit
8282
8383
8484class RelationDelta (EntityDelta ):
8585 @classmethod
86- def get_entity_class (self ):
86+ def get_entity_class (cls ):
8787 from .relation import Relation
8888
8989 return Relation
@@ -94,7 +94,7 @@ def get_id(self):
9494 return self .data ["name" ]
9595
9696 @classmethod
97- def get_entity_class (self ):
97+ def get_entity_class (cls ):
9898 from .remoteapplication import RemoteApplication
9999
100100 return RemoteApplication
@@ -105,7 +105,7 @@ def get_id(self):
105105 return self .data ["charm-url" ]
106106
107107 @classmethod
108- def get_entity_class (self ):
108+ def get_entity_class (cls ):
109109 from .charm import Charm
110110
111111 return Charm
@@ -116,7 +116,7 @@ def get_id(self):
116116 return self .data ["application-name" ]
117117
118118 @classmethod
119- def get_entity_class (self ):
119+ def get_entity_class (cls ):
120120 from .remoteapplication import ApplicationOffer
121121
122122 return ApplicationOffer
0 commit comments