Skip to content

Commit 2fdbb2d

Browse files
author
Snail Mail
committed
STY: fix PEP8 messages
1 parent ef8323f commit 2fdbb2d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

zipline/finance/order.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ class Order(object):
4343
# Order objects and we keep them all in memory, so it's worthwhile trying
4444
# to cut down on the memory footprint of this object.
4545
__slots__ = ["id", "dt", "reason", "created", "sid", "amount", "filled",
46-
"commission", "_status", "stop", "stop_ghost", "stop_stage", "limit",
47-
"stop_reached", "limit_reached", "direction", "type",
46+
"commission", "_status", "stop", "stop_ghost", "stop_stage",
47+
"limit", "stop_reached", "limit_reached", "direction", "type",
4848
"broker_order_id"]
4949

5050
def __init__(self, dt, sid, amount, stop=None, limit=None, filled=0,

zipline/finance/slippage.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,9 +235,9 @@ def process_order(self, data, order):
235235
return None, None
236236

237237
use_limit_price = order.limit and (
238-
order.stop_stage is not self.bar_stage
239-
if order.stop_stage
240-
else not self.bar_stage.limits_enhance)
238+
order.stop_stage is not self.bar_stage
239+
if order.stop_stage
240+
else not self.bar_stage.limits_enhance)
241241
order.stop_ghost = None # ignore for later bars
242242
return (
243243
order.limit if use_limit_price else impacted_price,

0 commit comments

Comments
 (0)