Commit 118b6120 authored by sponsfreixes's avatar sponsfreixes Committed by Jelle Zijlstra
Browse files

Improve examples to use 88 chars line length (#677) (#714)

The examples were wrapping at less than 88 characters, which is not the
default for black.
parent a00f4266
Loading
Loading
Loading
Loading
+6 −4
Changes for README.md: 6 added lines, 4 removed lines.
Original line number Diff line number Diff line
@@ -189,12 +189,12 @@ brackets and put that in a separate indented line.
```py3
# in:

TracebackException.from_exception(exc, limit, lookup_lines, capture_locals)
ImportantClass.important_method(exc, limit, lookup_lines, capture_locals, extra_argument)

# out:

TracebackException.from_exception(
    exc, limit, lookup_lines, capture_locals
ImportantClass.important_method(
    exc, limit, lookup_lines, capture_locals, extra_argument
)
```

@@ -208,7 +208,7 @@ separate lines.
```py3
# 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`."""
    with open(file, 'w') as f:
        ...
@@ -219,6 +219,8 @@ 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`."""