(node: cst.FunctionDef)
| 851 | |
| 852 | @staticmethod |
| 853 | def deprecate_function(node: cst.FunctionDef) -> cst.FunctionDef: |
| 854 | decorators = list(node.decorators) |
| 855 | decorators.append(cst.Decorator(decorator=cst.Name(value="deprecated"))) |
| 856 | return node.with_changes(decorators=decorators) |
| 857 | |
| 858 | def inner_github_type(self, data_type: PythonType | GithubClass | list[PythonType | GithubClass]) -> [GithubClass]: |
| 859 | if data_type is None: |