The examples were wrapping at less than 88 characters, which is not the default for black.
This commit is contained in:
parent
a00f426637
commit
118b612059
10
README.md
10
README.md
@ -189,12 +189,12 @@ brackets and put that in a separate indented line.
|
|||||||
```py3
|
```py3
|
||||||
# in:
|
# in:
|
||||||
|
|
||||||
TracebackException.from_exception(exc, limit, lookup_lines, capture_locals)
|
ImportantClass.important_method(exc, limit, lookup_lines, capture_locals, extra_argument)
|
||||||
|
|
||||||
# out:
|
# out:
|
||||||
|
|
||||||
TracebackException.from_exception(
|
ImportantClass.important_method(
|
||||||
exc, limit, lookup_lines, capture_locals
|
exc, limit, lookup_lines, capture_locals, extra_argument
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
@ -208,7 +208,7 @@ separate lines.
|
|||||||
```py3
|
```py3
|
||||||
# in:
|
# in:
|
||||||
|
|
||||||
def very_important_function(template: str, *variables, file: os.PathLike, debug: bool = False):
|
def very_important_function(template: str, *variables, file: os.PathLike, engine: str, header: bool = True, debug: bool = False):
|
||||||
"""Applies `variables` to the `template` and writes to `file`."""
|
"""Applies `variables` to the `template` and writes to `file`."""
|
||||||
with open(file, 'w') as f:
|
with open(file, 'w') as f:
|
||||||
...
|
...
|
||||||
@ -219,6 +219,8 @@ def very_important_function(
|
|||||||
template: str,
|
template: str,
|
||||||
*variables,
|
*variables,
|
||||||
file: os.PathLike,
|
file: os.PathLike,
|
||||||
|
engine: str,
|
||||||
|
header: bool = True
|
||||||
debug: bool = False,
|
debug: bool = False,
|
||||||
):
|
):
|
||||||
"""Applies `variables` to the `template` and writes to `file`."""
|
"""Applies `variables` to the `template` and writes to `file`."""
|
||||||
|
Loading…
Reference in New Issue
Block a user