Skip to content

Commit f1547a0

Browse files
committed
fix lint issues
typed_list passed unexpectedly
1 parent 774056c commit f1547a0

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

pytensor/typed_list/basic.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ def perform(self, node, inputs, outputs):
166166
def __str__(self):
167167
return self.__class__.__name__
168168

169-
# DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend().
170-
def _c_code_(self, node, name, inp, out, sub):
169+
def c_code(self, node, name, inp, out, sub):
170+
raise NotImplementedError("DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend()")
171171
x_name, toAppend = inp[0], inp[1]
172172
output_name = out[0]
173173
fail = sub["fail"]
@@ -251,8 +251,8 @@ def perform(self, node, inputs, outputs):
251251
def __str__(self):
252252
return self.__class__.__name__
253253

254-
# DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend().
255-
def _c_code_(self, node, name, inp, out, sub):
254+
def c_code(self, node, name, inp, out, sub):
255+
raise NotImplementedError("DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend()")
256256
x_name, toAppend = inp[0], inp[1]
257257
output_name = out[0]
258258
fail = sub["fail"]
@@ -343,8 +343,8 @@ def perform(self, node, inputs, outputs):
343343
def __str__(self):
344344
return self.__class__.__name__
345345

346-
# DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend().
347-
def _c_code_(self, node, name, inp, out, sub):
346+
def c_code(self, node, name, inp, out, sub):
347+
raise NotImplementedError("DISABLED AS WE NEED TO UPDATE IT TO COPY toAppend()")
348348
x_name, index, toInsert = inp[0], inp[1], inp[2]
349349
output_name = out[0]
350350
fail = sub["fail"]

scripts/run_mypy.py

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
pytensor/tensor/type.py
6262
pytensor/tensor/type_other.py
6363
pytensor/tensor/var.py
64-
pytensor/typed_list/basic.py
6564
"""
6665

6766

0 commit comments

Comments
 (0)