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

Method contains_decorator

scripts/openapi.py:365–366  ·  view source on GitHub ↗
(seq: Sequence[cst.Decorator], decorator_name: str)

Source from the content-addressed store, hash-verified

363class CstMethods(abc.ABC):
364 @staticmethod
365 def contains_decorator(seq: Sequence[cst.Decorator], decorator_name: str):
366 return any(d.decorator.value == decorator_name for d in seq if isinstance(d.decorator, cst.Name))
367
368 @classmethod
369 def is_github_object_property(cls, func_def: cst.FunctionDef):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected