File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -526,11 +526,11 @@ def collect_shared_to_list(params):
526
526
List
527
527
"""
528
528
if isinstance (params , dict ):
529
- return list (
529
+ return [
530
530
t [1 ]
531
531
for t in sorted (params .items (), key = lambda t : t [0 ])
532
532
if isinstance (t [1 ], pytensor .compile .SharedVariable )
533
- )
533
+ ]
534
534
elif params is None :
535
535
return []
536
536
else :
Original file line number Diff line number Diff line change @@ -151,8 +151,7 @@ def test_intermediate_rv(self):
151
151
res_ancestors = list (ancestors ((res ,)))
152
152
153
153
assert (
154
- len (list (n for n in res_ancestors if n .owner and isinstance (n .owner .op , MeasurableOp )))
155
- == 1
154
+ len ([n for n in res_ancestors if n .owner and isinstance (n .owner .op , MeasurableOp )]) == 1
156
155
)
157
156
158
157
assert c_value_var in res_ancestors
You can’t perform that action at this time.
0 commit comments