Skip to content

Commit 3e02efa

Browse files
committed
Type hints are not only for mypy
1 parent 2a7f3e1 commit 3e02efa

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

scripts/mypy-failing.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pytensor/link/numba/dispatch/scan.py
1111
pytensor/printing.py
1212
pytensor/raise_op.py
1313
pytensor/sparse/basic.py
14-
pytensor/sparse/type.py
1514
pytensor/tensor/basic.py
1615
pytensor/tensor/blas_c.py
1716
pytensor/tensor/blas_headers.py

scripts/run_mypy.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,13 @@ def check_no_unexpected_results(mypy_lines: Iterable[str]):
142142
print(*missing, sep="\n")
143143
sys.exit(1)
144144
cp = subprocess.run(
145-
["mypy", "--show-error-codes", "pytensor"],
145+
[
146+
"mypy",
147+
"--show-error-codes",
148+
"--disable-error-code",
149+
"annotation-unchecked",
150+
"pytensor",
151+
],
146152
capture_output=True,
147153
)
148154
output = cp.stdout.decode()

0 commit comments

Comments
 (0)