(self, t: _O)
| 965 | |
| 966 | @joiner |
| 967 | def render_body(self, t: _O) -> Iterator[str]: |
| 968 | if body := super().render_body(t): |
| 969 | yield body |
| 970 | |
| 971 | yield from ( |
| 972 | str(field) |
| 973 | # Sorting by graphql name rather than python name for |
| 974 | # consistency with other SDKs. |
| 975 | for field in sorted( |
| 976 | self.fields(t), |
| 977 | key=lambda f: (getattr(f, "has_default", False), f.graphql_name), |
| 978 | ) |
| 979 | ) |
| 980 | |
| 981 | |
| 982 | class Input(ObjectHandler[GraphQLInputObjectType]): |
nothing calls this directly
no test coverage detected