MCPcopy Create free account
hub / github.com/getsentry/sentry / is_extend_schema

Function is_extend_schema

tools/flake8_plugin.py:311–317  ·  view source on GitHub ↗
(decorator: ast.expr)

Source from the content-addressed store, hash-verified

309
310
311def is_extend_schema(decorator: ast.expr) -> bool:
312 if not isinstance(decorator, ast.Call):
313 return False
314 func = decorator.func
315 return (isinstance(func, ast.Name) and func.id == "extend_schema") or (
316 isinstance(func, ast.Attribute) and func.attr == "extend_schema"
317 )
318
319
320def extend_schema_kwarg(decorators: list[ast.expr], name: str) -> Generator[ast.expr]:

Callers 2

extend_schema_kwargFunction · 0.85
_decorator_response_TsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected