Skip to content

Commit 89f97cc

Browse files
author
Augustus Lonergan
committed
test_docstrings_all_types only cares about length of non-builtin type docstrings
1 parent bc94ab3 commit 89f97cc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

typed_python/types_test.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3269,6 +3269,8 @@ def test_docstrings_all_types(self):
32693269
max_line_len = 80
32703270
if a in ['__index__']: # Ignore some builtin docstrings with overlong lines.
32713271
continue
3272+
if not hasattr(m, '__typed_python_category__'):
3273+
continue
32723274
for l in docstring.splitlines():
32733275
if len(l) > max_line_len:
32743276
print(f"docstring line too long {len(l)} > {max_line_len} for '{T}.{a}':\n{l}")

0 commit comments

Comments
 (0)