(self)
| 81 | return ast.Call(func=self._attr_node, args=args, keywords=[]) |
| 82 | |
| 83 | def as_decorator(self) -> str: |
| 84 | unparsed = ast.unparse(self.as_ast_node()) |
| 85 | # ast.unparse uses single quotes; convert to double quotes for ruff compatibility |
| 86 | unparsed = _single_to_double_quotes(unparsed) |
| 87 | |
| 88 | if not self.ut_method.has_args(): |
| 89 | unparsed = f"{unparsed} # {self._reason}" |
| 90 | |
| 91 | return f"@{unparsed}" |
| 92 | |
| 93 | |
| 94 | def _single_to_double_quotes(s: str) -> str: |