Update formatting example

This commit is contained in:
Łukasz Langa 2018-03-17 02:13:11 -07:00
parent 9d78a57187
commit 94f50c1461

View File

@ -106,7 +106,7 @@ matching brackets. If that doesn't work, it will put all of them in
separate lines. 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, 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:
... ...
@ -115,7 +115,6 @@ def very_important_function(template: str, *variables, *, file: os.PathLike, deb
def very_important_function( def very_important_function(
template: str, template: str,
*variables, *variables,
*,
file: os.PathLike, file: os.PathLike,
debug: bool = False, debug: bool = False,
): ):