Upgrade styler to better handle lists (#9423)

* Add missing lines before a new list.

* Update doc styler and restyle some files.

* Fix docstrings of LED and Longformer
This commit is contained in:
Sylvain Gugger
2021-01-06 07:46:17 -05:00
committed by GitHub
parent b7e548976f
commit bcb55d33ce
10 changed files with 66 additions and 32 deletions

View File

@@ -522,6 +522,7 @@ class CaptureLogger:
Context manager to capture `logging` streams
Args:
- logger: 'logging` logger object
Results:
@@ -851,9 +852,10 @@ def pytest_terminal_summary_main(tr, id):
there.
Args:
- tr: `terminalreporter` passed from `conftest.py`
- id: unique id like `tests` or `examples` that will be incorporated into the final reports
filenames - this is needed as some jobs have multiple runs of pytest, so we can't have them overwrite each other.
- id: unique id like `tests` or `examples` that will be incorporated into the final reports filenames - this is
needed as some jobs have multiple runs of pytest, so we can't have them overwrite each other.
NB: this functions taps into a private _pytest API and while unlikely, it could break should
pytest do internal changes - also it calls default internal methods of terminalreporter which