16 from ast import unparse |
16 from ast import unparse |
17 except ImportError: |
17 except ImportError: |
18 # Python < 3.9 |
18 # Python < 3.9 |
19 from ast_unparse import unparse |
19 from ast_unparse import unparse |
20 |
20 |
21 # |
21 ####################################################################### |
22 # The visitor is adapted from flake8-async v22.11.14 |
22 ## AsyncVisitor |
23 # |
23 ## |
|
24 ## adapted from: flake8-async v22.11.14 |
|
25 ####################################################################### |
24 |
26 |
25 |
27 |
26 class AsyncVisitor(ast.NodeVisitor): |
28 class AsyncVisitor(ast.NodeVisitor): |
27 """ |
29 """ |
28 Class implementing a node visitor for checking async functions for use of |
30 Class implementing a node visitor for checking async functions for use of |