Skip to content

Commit

Permalink
Fix unions
Browse files Browse the repository at this point in the history
  • Loading branch information
karthiknadig committed Sep 18, 2023
1 parent 24763e4 commit 42b8d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pythonFiles/vscode_pytest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,7 +609,7 @@ class ExecutionPayloadDict(Dict):
class EOTPayloadDict(TypedDict):
"""A dictionary that is used to send a end of transmission post request to the server."""

command_type: Literal["discovery"] | Literal["execution"]
command_type: Union[Literal["discovery"], Literal["execution"]]
eot: bool


Expand Down Expand Up @@ -672,7 +672,7 @@ def default(self, obj):


def send_post_request(
payload: ExecutionPayloadDict | DiscoveryPayloadDict | EOTPayloadDict,
payload: Union[ExecutionPayloadDict, DiscoveryPayloadDict, EOTPayloadDict],
cls_encoder=None,
):
"""
Expand Down

0 comments on commit 42b8d05

Please sign in to comment.