Skip to content

Commit

Permalink
handle decorators for AsyncFunctionDefs. Closes nedbat#964
Browse files Browse the repository at this point in the history
  • Loading branch information
afflux committed Mar 24, 2020
1 parent f318f93 commit b1fc93d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions coverage/parser.py
Expand Up @@ -611,6 +611,8 @@ def _line__Dict(self, node):

_line__FunctionDef = _line_decorated

_line__AsyncFunctionDef = _line_decorated

def _line__List(self, node):
if node.elts:
return self.line_for_node(node.elts[0])
Expand Down

0 comments on commit b1fc93d

Please sign in to comment.