(self, t: GraphQLInterfaceType)
| 1037 | |
| 1038 | @joiner |
| 1039 | def render_body(self, t: GraphQLInterfaceType) -> Iterator[str]: |
| 1040 | if t.description: |
| 1041 | yield from wrap(doc(t.description)) |
| 1042 | |
| 1043 | for name, ifield in sorted(t.fields.items()): |
| 1044 | if name == "id": |
| 1045 | # id is available on all Type objects |
| 1046 | continue |
| 1047 | |
| 1048 | obj_field = _ObjectField(self.ctx, name, ifield, t) |
| 1049 | sig = obj_field.func_signature() |
| 1050 | yield "" |
| 1051 | yield f"{sig}" |
| 1052 | if obj_field.description: |
| 1053 | yield indent(doc(obj_field.description)) |
| 1054 | else: |
| 1055 | yield indent("...") |
| 1056 | |
| 1057 | |
| 1058 | class Object(ObjectHandler[GraphQLObjectType]): |
no test coverage detected