Output for an InputObject field.
(self)
| 612 | |
| 613 | @joiner |
| 614 | def __str__(self) -> Iterator[str]: |
| 615 | """Output for an InputObject field.""" |
| 616 | yield "" |
| 617 | yield self.ctx.render_types(self.as_param()) |
| 618 | doc_parts: list[str] = [] |
| 619 | if self.description: |
| 620 | doc_parts.append(self.description) |
| 621 | if self.deprecated is not None: |
| 622 | directive = ".. deprecated::" |
| 623 | if self.deprecated: |
| 624 | directive = f"{directive} {self.deprecated}" |
| 625 | doc_parts.append(directive) |
| 626 | |
| 627 | if doc_parts: |
| 628 | yield doc("\n\n".join(doc_parts)) |
| 629 | |
| 630 | def as_param(self) -> str: |
| 631 | """As a parameter in a function signature.""" |
nothing calls this directly
no test coverage detected