Doc styling fixes (#8074)

* Fix a few docstrings

* More fixes

* Styling
This commit is contained in:
Sylvain Gugger
2020-10-27 07:54:50 -04:00
committed by GitHub
parent 1496931b49
commit c42596bc07
6 changed files with 50 additions and 43 deletions

View File

@@ -312,10 +312,11 @@ class DocstringStyler(CodeStyler):
"""Class to style docstrings that take the main method from `CodeStyler`."""
def is_no_style_block(self, line):
if _re_textual_blocks.search(line) is not None:
return False
if _re_example.search(line) is not None:
return True
return _re_code_block.search(line) is not None
# return super().is_no_style_block(line) is not None
def is_comment_or_textual_block(self, line):
if _re_return.search(line) is not None: