Skip to content

Commit

Permalink
Change Response.render content argument typing
Browse files Browse the repository at this point in the history
  • Loading branch information
aminalaee committed Sep 1, 2023
1 parent cb6d284 commit ae89db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def __init__(
self.body = self.render(content)
self.init_headers(headers)

def render(self, content: typing.Union[str, bytes, None]) -> bytes:
def render(self, content: typing.Any) -> bytes:
if content is None:
return b""
if isinstance(content, bytes):
Expand Down

0 comments on commit ae89db8

Please sign in to comment.