MCPcopy Index your code
hub / github.com/PyGithub/PyGithub / deprecate_function

Method deprecate_function

scripts/openapi.py:853–856  ·  view source on GitHub ↗
(node: cst.FunctionDef)

Source from the content-addressed store, hash-verified

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:

Callers 1

leave_FunctionDefMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected