PEP 612: Fix indentation in code example (#1557)
This commit is contained in:
parent
0a12f69b07
commit
d198754bdb
|
@ -41,7 +41,7 @@ tools to annotate the following common decorator pattern satisfactorily:
|
|||
def add_logging(f: Callable[..., R]) -> Callable[..., Awaitable[R]]:
|
||||
async def inner(*args: object, **kwargs: object) -> R:
|
||||
await log_to_database()
|
||||
return f(*args, **kwargs)
|
||||
return f(*args, **kwargs)
|
||||
return inner
|
||||
|
||||
@add_logging
|
||||
|
|
Loading…
Reference in New Issue