Skip to content

Commit

Permalink
use typing.Union instead of Optional
Browse files Browse the repository at this point in the history
  • Loading branch information
graingert committed Dec 29, 2024
1 parent de4b745 commit bf9082b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion starlette/testclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,7 @@ def reset_portal() -> None:
self.portal = None

send1, receive1 = anyio.create_memory_object_stream[
typing.Optional[typing.MutableMapping[str, typing.Any]]
typing.Union[typing.MutableMapping[str, typing.Any], None]
](math.inf)
send2, receive2 = anyio.create_memory_object_stream[typing.MutableMapping[str, typing.Any]](math.inf)
for channel in (send1, send2, receive1, receive2):
Expand Down

0 comments on commit bf9082b

Please sign in to comment.