@@ -113,7 +113,7 @@ def deploy_acs_func(config: deploy_acs):
113
113
114
114
115
115
def test_common_func (config : test_common ):
116
- if type (config ) == test :
116
+ if type (config ) is test :
117
117
# construct the container Infrastructure objects
118
118
config .getContainerInfrastructureObjects ()
119
119
# otherwise, they have already been passed as servers
@@ -220,25 +220,25 @@ def main():
220
220
with warnings .catch_warnings (action = "ignore" ):
221
221
config = tyro .cli (models )
222
222
223
- if type (config ) == init :
223
+ if type (config ) is init :
224
224
t .__dict__ .update (config .__dict__ )
225
225
init_func (t )
226
- elif type (config ) == validate :
226
+ elif type (config ) is validate :
227
227
validate_func (config )
228
- elif type (config ) == report :
228
+ elif type (config ) is report :
229
229
report_func (config )
230
- elif type (config ) == build :
230
+ elif type (config ) is build :
231
231
build_func (config )
232
- elif type (config ) == new :
232
+ elif type (config ) is new :
233
233
new_func (config )
234
- elif type (config ) == inspect :
234
+ elif type (config ) is inspect :
235
235
inspect_func (config )
236
- elif type (config ) == release_notes :
236
+ elif type (config ) is release_notes :
237
237
release_notes_func (config )
238
- elif type (config ) == deploy_acs :
238
+ elif type (config ) is deploy_acs :
239
239
updated_config = deploy_acs .model_validate (config )
240
240
deploy_acs_func (updated_config )
241
- elif type (config ) == test or type (config ) == test_servers :
241
+ elif type (config ) is test or type (config ) is test_servers :
242
242
test_common_func (config )
243
243
else :
244
244
raise Exception (f"Unknown command line type '{ type (config ).__name__ } '" )
0 commit comments