realm_playgrounds: Remove unnecessary Any for kwargs.

Having a more precise type annotation helps with ensuring the migration
to use URL templates gets type checked.

Signed-off-by: Zixuan James Li <p359101898@gmail.com>
This commit is contained in:
Zixuan James Li
2023-05-26 19:33:01 -04:00
committed by Tim Abbott
parent 6cb080c447
commit 131729a06c
4 changed files with 21 additions and 13 deletions

View File

@@ -302,12 +302,13 @@ def add_realm_playground() -> Dict[str, object]:
@openapi_param_value_generator(["/realm/playgrounds/{playground_id}:delete"])
def remove_realm_playground() -> Dict[str, object]:
playground_info = dict(
playground_id = do_add_realm_playground(
get_realm("zulip"),
acting_user=None,
name="Python playground",
pygments_language="Python",
url_prefix="https://python.example.com",
)
playground_id = do_add_realm_playground(get_realm("zulip"), acting_user=None, **playground_info)
return {
"playground_id": playground_id,
}