Skip to content

Commit efda3fe

Browse files
Pigbibicursoragent
andcommitted
Fix remaining buys_blocked_reason ruff assignments.
Rename pending_sell_release and negative_cash assignments to _buys_blocked_reason so ruff F841 passes consistently. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 2107259 commit efda3fe

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

application/execution_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ def execute_value_target_plan(
585585
if quantity > 0:
586586
estimated_buy_cost += quantity * limit_price
587587
if estimated_buy_cost > investable_cash:
588-
buys_blocked_reason = "pending_sell_release"
588+
_buys_blocked_reason = "pending_sell_release"
589589
for symbol, _delta_value, _price in buy_deltas:
590590
skipped.append(
591591
{
@@ -596,7 +596,7 @@ def execute_value_target_plan(
596596
)
597597
buy_deltas = []
598598
elif cash_only_execution and buy_deltas and raw_liquid_cash < 0.0:
599-
buys_blocked_reason = "negative_cash"
599+
_buys_blocked_reason = "negative_cash"
600600
for symbol, _delta_value, _price in buy_deltas:
601601
skipped.append(
602602
{

0 commit comments

Comments
 (0)