Skip to content

Commit

Permalink
fix: typeadapters need type annotations to pacify mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
DonDebonair committed Jul 4, 2024
1 parent 52f1fa0 commit dec7e60
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion machine/models/interactive.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,6 +424,6 @@ class ViewSubmissionPayload(TypedModel):
is_enterprise_install: bool


InteractivePayload = TypeAdapter(
InteractivePayload: TypeAdapter[Union[BlockActionsPayload, ViewSubmissionPayload]] = TypeAdapter(
Annotated[Union[BlockActionsPayload, ViewSubmissionPayload], Field(discriminator="type")]
)

0 comments on commit dec7e60

Please sign in to comment.