diff --git a/RELEASE.md b/RELEASE.md new file mode 100644 index 0000000000..b21a3197e3 --- /dev/null +++ b/RELEASE.md @@ -0,0 +1,3 @@ +Release type: patch + +This release tweaks the Flask integration's `render_graphql_ide` method to be stricter typed internally, making type checkers every so slightly happier. diff --git a/strawberry/flask/views.py b/strawberry/flask/views.py index 053003ac91..d93f480b1e 100644 --- a/strawberry/flask/views.py +++ b/strawberry/flask/views.py @@ -187,7 +187,8 @@ async def dispatch_request(self) -> ResponseReturnValue: # type: ignore ) async def render_graphql_ide(self, request: Request) -> Response: - return render_template_string(self.graphql_ide_html) # type: ignore + content = render_template_string(self.graphql_ide_html) + return Response(content, status=200, content_type="text/html") def is_websocket_request(self, request: Request) -> TypeGuard[Request]: return False