(self, node: ast.AsyncFunctionDef)
| 862 | self._exit_input() |
| 863 | |
| 864 | def visit_AsyncFunctionDef(self, node: ast.AsyncFunctionDef) -> None: |
| 865 | if len(self._class_stack) == 1 and self._function_depth == 0: |
| 866 | self._check_S021(node) |
| 867 | self._check_S022(node) |
| 868 | entered = self._enter_input(node) |
| 869 | self._function_depth += 1 |
| 870 | self._function_stack.append(node.name) |
| 871 | try: |
| 872 | self.generic_visit(node) |
| 873 | finally: |
| 874 | self._function_stack.pop() |
| 875 | self._function_depth -= 1 |
| 876 | if entered: |
| 877 | self._exit_input() |
| 878 | |
| 879 | def visit_Lambda(self, node: ast.Lambda) -> None: |
| 880 | self._function_depth += 1 |
nothing calls this directly
no test coverage detected