Skip to content

Commit 40e07bf

Browse files
committed
tyro shake fist
1 parent b422430 commit 40e07bf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

contentctl/contentctl.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ def recognize_func():
181181

182182
@dataclass
183183
class RecognizeCommand:
184-
"""Dummy subcommand for 'recognize' that requires no parameters."""
184+
"""Dummy subcommand for 'recognize' with no parameters."""
185185

186186
pass
187187

@@ -241,7 +241,7 @@ def main():
241241
"test_servers": test_servers.model_construct(**t.__dict__),
242242
"release_notes": release_notes.model_construct(**config_obj),
243243
"deploy_acs": deploy_acs.model_construct(**t.__dict__),
244-
"recognize": tyro.conf.subcommand(),
244+
"recognize": RecognizeCommand(),
245245
}
246246
)
247247

@@ -272,7 +272,7 @@ def main():
272272
deploy_acs_func(updated_config)
273273
elif type(config) is test or type(config) is test_servers:
274274
test_common_func(config)
275-
elif type(config) is tyro.conf.subcommand:
275+
elif type(config) is RecognizeCommand:
276276
recognize_func()
277277
else:
278278
raise Exception(f"Unknown command line type '{type(config).__name__}'")

0 commit comments

Comments
 (0)