mirror of
https://github.com/zulip/zulip.git
synced 2025-11-01 20:44:04 +00:00
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:
committed by
Tim Abbott
parent
6cb080c447
commit
131729a06c
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user