Skip to content

Commit ec84a95

Browse files
committed
fix doc
1 parent 5dd5cc6 commit ec84a95

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ jobs:
8282
run: cat doc.txt
8383

8484
- name: Check for errors and warnings
85-
continue-on-error: true
8685
run: |
8786
if [[ $(grep ERROR doc.txt | grep -v 'Unknown target name: "l_shape"' | grep -v 'Unknown target name: "l_x"') ]]; then
8887
echo "Documentation produces errors."

.github/workflows/mypy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Type annotation with mypy
2+
on: [push, pull_request]
3+
jobs:
4+
mypy:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v3
8+
- uses: actions/setup-python@v4
9+
with:
10+
python-version: '3.12'
11+
- name: Install mypy
12+
run: pip install mypy
13+
- name: Run mypy
14+
run: mypy

_doc/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@
108108
("py:class", "default=sklearn.utils.metadata_routing.UNCHANGED"),
109109
("py:class", "ModelProto"),
110110
("py:class", "Module"),
111+
("py:class", "numpy._typing._nested_sequence._NestedSequence"),
111112
("py:class", "torch.fx.passes.operator_support.OperatorSupport"),
112113
("py:class", "torch.fx.proxy.TracerBase"),
113114
("py:class", "torch.utils._pytree.Context"),

0 commit comments

Comments
 (0)