@@ -53,23 +53,23 @@ class Meta:
5353
5454 @classmethod
5555 def resolve_type (cls , instance , info ):
56- if type (instance ) == CircuitTermination :
56+ if type (instance ) is CircuitTermination :
5757 return CircuitTerminationType
58- if type (instance ) == ConsolePortType :
58+ if type (instance ) is ConsolePortType :
5959 return ConsolePortType
60- if type (instance ) == ConsoleServerPort :
60+ if type (instance ) is ConsoleServerPort :
6161 return ConsoleServerPortType
62- if type (instance ) == FrontPort :
62+ if type (instance ) is FrontPort :
6363 return FrontPortType
64- if type (instance ) == Interface :
64+ if type (instance ) is Interface :
6565 return InterfaceType
66- if type (instance ) == PowerFeed :
66+ if type (instance ) is PowerFeed :
6767 return PowerFeedType
68- if type (instance ) == PowerOutlet :
68+ if type (instance ) is PowerOutlet :
6969 return PowerOutletType
70- if type (instance ) == PowerPort :
70+ if type (instance ) is PowerPort :
7171 return PowerPortType
72- if type (instance ) == RearPort :
72+ if type (instance ) is RearPort :
7373 return RearPortType
7474
7575
@@ -89,23 +89,23 @@ class Meta:
8989
9090 @classmethod
9191 def resolve_type (cls , instance , info ):
92- if type (instance ) == CircuitTermination :
92+ if type (instance ) is CircuitTermination :
9393 return CircuitTerminationType
94- if type (instance ) == ConsolePortType :
94+ if type (instance ) is ConsolePortType :
9595 return ConsolePortType
96- if type (instance ) == ConsoleServerPort :
96+ if type (instance ) is ConsoleServerPort :
9797 return ConsoleServerPortType
98- if type (instance ) == FrontPort :
98+ if type (instance ) is FrontPort :
9999 return FrontPortType
100- if type (instance ) == Interface :
100+ if type (instance ) is Interface :
101101 return InterfaceType
102- if type (instance ) == PowerFeed :
102+ if type (instance ) is PowerFeed :
103103 return PowerFeedType
104- if type (instance ) == PowerOutlet :
104+ if type (instance ) is PowerOutlet :
105105 return PowerOutletType
106- if type (instance ) == PowerPort :
106+ if type (instance ) is PowerPort :
107107 return PowerPortType
108- if type (instance ) == RearPort :
108+ if type (instance ) is RearPort :
109109 return RearPortType
110110
111111
@@ -123,19 +123,19 @@ class Meta:
123123
124124 @classmethod
125125 def resolve_type (cls , instance , info ):
126- if type (instance ) == ConsolePortTemplate :
126+ if type (instance ) is ConsolePortTemplate :
127127 return ConsolePortTemplateType
128- if type (instance ) == ConsoleServerPortTemplate :
128+ if type (instance ) is ConsoleServerPortTemplate :
129129 return ConsoleServerPortTemplateType
130- if type (instance ) == FrontPortTemplate :
130+ if type (instance ) is FrontPortTemplate :
131131 return FrontPortTemplateType
132- if type (instance ) == InterfaceTemplate :
132+ if type (instance ) is InterfaceTemplate :
133133 return InterfaceTemplateType
134- if type (instance ) == PowerOutletTemplate :
134+ if type (instance ) is PowerOutletTemplate :
135135 return PowerOutletTemplateType
136- if type (instance ) == PowerPortTemplate :
136+ if type (instance ) is PowerPortTemplate :
137137 return PowerPortTemplateType
138- if type (instance ) == RearPortTemplate :
138+ if type (instance ) is RearPortTemplate :
139139 return RearPortTemplateType
140140
141141
@@ -153,17 +153,17 @@ class Meta:
153153
154154 @classmethod
155155 def resolve_type (cls , instance , info ):
156- if type (instance ) == ConsolePort :
156+ if type (instance ) is ConsolePort :
157157 return ConsolePortType
158- if type (instance ) == ConsoleServerPort :
158+ if type (instance ) is ConsoleServerPort :
159159 return ConsoleServerPortType
160- if type (instance ) == FrontPort :
160+ if type (instance ) is FrontPort :
161161 return FrontPortType
162- if type (instance ) == Interface :
162+ if type (instance ) is Interface :
163163 return InterfaceType
164- if type (instance ) == PowerOutlet :
164+ if type (instance ) is PowerOutlet :
165165 return PowerOutletType
166- if type (instance ) == PowerPort :
166+ if type (instance ) is PowerPort :
167167 return PowerPortType
168- if type (instance ) == RearPort :
168+ if type (instance ) is RearPort :
169169 return RearPortType
0 commit comments