Skip to content

Commit 9505f6b

Browse files
committed
Regex nitpick ignore for array types
1 parent d47002d commit 9505f6b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/conf.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@
6464
# autodoc wants to make cross-references for every type hint. But a lot of
6565
# them don't actually refer to anything that we have a document for.
6666
nitpick_ignore = [
67-
('py:class', 'array'),
6867
('py:class', 'device'),
6968
('py:class', 'dtype'),
7069
('py:class', 'NestedSequence'),
@@ -80,6 +79,9 @@
8079
('py:class', 'finfo_object'),
8180
('py:class', 'iinfo_object'),
8281
]
82+
nitpick_ignore_regex = [
83+
('py:class', '.*array'),
84+
]
8385
# In array_object.py we have to use aliased names for some types because they
8486
# would otherwise refer back to method objects of array
8587
autodoc_type_aliases = {

0 commit comments

Comments
 (0)