Skip to content

Commit cd45c74

Browse files
committed
Clear mypy errors in link/basic.py
1 parent b5682ed commit cd45c74

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pytensor/link/basic.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def make_all(
322322
output_storage=None,
323323
storage_map=None,
324324
):
325-
fgraph: Any = self.fgraph
325+
fgraph = self.fgraph
326326
order = self.schedule(fgraph)
327327
no_recycling = self.no_recycling
328328

@@ -347,7 +347,7 @@ def make_all(
347347
thunks[-1].outputs = [storage_map[v] for v in node.outputs]
348348

349349
computed, last_user = gc_helper(order)
350-
post_thunk_old_storage: Any = [] if self.allow_gc else None
350+
post_thunk_old_storage = [] if self.allow_gc else None
351351

352352
for node in order:
353353
if self.allow_gc:

scripts/mypy-failing.txt

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ pytensor/compile/mode.py
66
pytensor/compile/sharedvalue.py
77
pytensor/graph/rewriting/basic.py
88
pytensor/ifelse.py
9-
pytensor/link/basic.py
109
pytensor/link/numba/dispatch/elemwise.py
1110
pytensor/link/numba/dispatch/scan.py
1211
pytensor/printing.py

0 commit comments

Comments
 (0)