Skip to content

Commit 91e2df8

Browse files
generatedunixname89002005307016meta-codesync[bot]
authored andcommitted
Suppress type errors for Pyre upgrade - erc
Summary: This diff was automatically generated by the Pyre per-target upgrade tool. It adds `# pyre-fixme` or `pyrefly: ignore` comments to suppress type errors that will be introduced by an upcoming Pyre or Pyrefly release. These suppressions allow the upgrade to proceed without breaking existing code. #pyreupgrade Differential Revision: D105999290 fbshipit-source-id: 1b8dc37ef85aa3108182f109bfcb6ec82f3833a8
1 parent 41918ff commit 91e2df8

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

svinfer/processor/matrix.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def outer(self, b: np.ndarray) -> NumpyMatrix:
189189
def cross(self, other: NumpyMatrix) -> NumpyMatrix:
190190
assert isinstance(other, NumpyMatrix)
191191
result = []
192-
# pyrefly: ignore [no-matching-overload]
192+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
193193
for j in range(other.ncol):
194194
# pyrefly: ignore [unsupported-operation]
195195
result.append(self.value * other.value[:, j : (j + 1)])
@@ -219,7 +219,7 @@ def __pos__(self) -> SqlMatrix:
219219
return SqlMatrix(self.value)
220220

221221
def __neg__(self) -> SqlMatrix:
222-
# pyrefly: ignore [no-matching-overload, unsupported-operation]
222+
# pyrefly: ignore [bad-argument-type, no-matching-overload, unsupported-operation]
223223
return SqlMatrix([-self.value[j] for j in range(self.ncol)])
224224

225225
def __add__(self, other):
@@ -287,7 +287,7 @@ def dot(self, b: np.ndarray) -> SqlMatrix:
287287
assert len(b.shape) == 1
288288
assert self.ncol == b.size
289289
result = sqlalchemy.literal(0.0)
290-
# pyrefly: ignore [no-matching-overload]
290+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
291291
for j in range(self.ncol):
292292
# pyrefly: ignore [unsupported-operation]
293293
result += self.value[j] * b[j]
@@ -306,25 +306,25 @@ def outer(self, b: np.ndarray) -> SqlMatrix:
306306
def cross(self, other: SqlMatrix) -> SqlMatrix:
307307
assert isinstance(other, SqlMatrix)
308308
result = []
309-
# pyrefly: ignore [no-matching-overload]
309+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
310310
for j in range(other.ncol):
311-
# pyrefly: ignore [no-matching-overload]
311+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
312312
for i in range(self.ncol):
313313
# pyrefly: ignore [unsupported-operation]
314314
result.append(self.value[i] * other.value[j])
315315
return SqlMatrix(result, dim=(self.ncol, other.ncol))
316316

317317
def exp(self) -> SqlMatrix:
318318
result = []
319-
# pyrefly: ignore [no-matching-overload]
319+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
320320
for j in range(self.ncol):
321321
# pyrefly: ignore [unsupported-operation]
322322
result.append(sqlalchemy.func.exp(self.value[j]))
323323
return SqlMatrix(result)
324324

325325
def log(self) -> SqlMatrix:
326326
result = []
327-
# pyrefly: ignore [no-matching-overload]
327+
# pyrefly: ignore [bad-argument-type, no-matching-overload]
328328
for j in range(self.ncol):
329329
# pyrefly: ignore [unsupported-operation]
330330
result.append(sqlalchemy.func.log(self.value[j]))

0 commit comments

Comments
 (0)