Skip to content

Commit

Permalink
Update src/black/nodes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
  • Loading branch information
yilei and JelleZijlstra authored Mar 16, 2023
1 parent 17109e7 commit aa872c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/black/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ def is_async_stmt_or_funcdef(leaf: Leaf) -> bool:
"""Return True if the given leaf starts an async def/for/with statement.
Note that `async def` can be either an `async_stmt` or `async_funcdef`,
the later is used when it has decorators.
the latter is used when it has decorators.
"""
return bool(
leaf.type == token.ASYNC
Expand Down

0 comments on commit aa872c1

Please sign in to comment.