chore: drop *-ok markers that suppress nothing (LIT013)

This commit is contained in:
hx 2026-10-03 00:01:30 +08:00
parent 2269446d4d
commit b31e48f95a
2 changed files with 3 additions and 3 deletions

View file

@ -131,7 +131,7 @@ def _thawed(value: object) -> object:
def thaw_mapping(mapping: Mapping[str, object]) -> dict[str, object]: # mutable-ok: JSON request body
return {key: _thawed(item) for key, item in mapping.items()} # mutable-ok: JSON request body
return {key: _thawed(item) for key, item in mapping.items()}
def _map_thinking_to_extra_body(

View file

@ -5231,12 +5231,12 @@ def _translate_thinking_in_params(
{key: value for key, value in thinking_values.items() if value is not None}
)
return (
{ # mutable-ok: get_optional_params keeps mutating passed_params downstream
{
**passed_params,
**thinking_values,
"extra_body": thaw_mapping(translated.extra_body),
},
{**untouched_non_default, **surviving_thinking_values}, # mutable-ok: _check_valid_arg pops unsupported keys
{**untouched_non_default, **surviving_thinking_values},
)