(decorator: ast.expr)
| 309 | |
| 310 | |
| 311 | def 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 | |
| 320 | def extend_schema_kwarg(decorators: list[ast.expr], name: str) -> Generator[ast.expr]: |
no outgoing calls
no test coverage detected