Skip to content

Commit 9f09f7d

Browse files
committed
style: fix yapf - inline f-string concat and for-loop continuation indent
- _unsafe_local_code_executor.py: merge two f-string lines into single parenthesized expression per yapf preference for adjacent string literals - __init__.py: indent for-loop body strings to 12 spaces (continuation = for-indent + 8) per yapf bracket continuation rule
1 parent ddcf47f commit 9f09f7d

2 files changed

Lines changed: 9 additions & 11 deletions

File tree

trpc_agent_sdk/code_executors/local/_unsafe_local_code_executor.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,8 @@ async def execute_code(self, invocation_context: InvocationContext,
129129
# and prepend it to stderr after execution completes below.
130130
_pending_review_warning = None
131131
if (report is not None and report.decision == Decision.NEEDS_HUMAN_REVIEW and not should_block):
132-
_pending_review_warning = (
133-
f"TOOL_SAFETY_NEEDS_REVIEW: {list(report.rule_ids)} "
134-
f"(risk={report.risk_level.value})"
135-
)
132+
_pending_review_warning = (f"TOOL_SAFETY_NEEDS_REVIEW: {list(report.rule_ids)} "
133+
f"(risk={report.risk_level.value})")
136134
else:
137135
_pending_review_warning = None
138136

trpc_agent_sdk/safety/__init__.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,13 @@
7272
safety_wrapper = None # type: ignore[assignment]
7373
wrap_tool = None # type: ignore[assignment]
7474
for _name in (
75-
"SafeCodeExecutor",
76-
"SafetyDeniedError",
77-
"SafetyGuardedCodeExecutor",
78-
"SafetyReviewedSkillRunner",
79-
"safe_code_executor",
80-
"safety_wrapper",
81-
"wrap_tool",
75+
"SafeCodeExecutor",
76+
"SafetyDeniedError",
77+
"SafetyGuardedCodeExecutor",
78+
"SafetyReviewedSkillRunner",
79+
"safe_code_executor",
80+
"safety_wrapper",
81+
"wrap_tool",
8282
):
8383
_IMPORT_ERRORS[_name] = ex
8484

0 commit comments

Comments
 (0)