| 980 | |
| 981 | |
| 982 | class Input(ObjectHandler[GraphQLInputObjectType]): |
| 983 | predicate: ClassVar[Predicate] = staticmethod(is_input_object_type) |
| 984 | |
| 985 | def render_head(self, t: GraphQLInputObjectType) -> str: |
| 986 | return f"@typecheck\n@dataclass(slots=True)\n{super().render_head(t)}" |
| 987 | |
| 988 | def fields(self, t: GraphQLInputObjectType) -> Iterator[_InputField]: |
| 989 | return ( |
| 990 | _InputField(self.ctx, *args) |
| 991 | for args in cast(GraphQLInputFieldMap, t.fields).items() |
| 992 | ) |
| 993 | |
| 994 | |
| 995 | @dataclass |