Skip to content

Commit

Permalink
nested test types fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Sep 18, 2023
1 parent 2e813bb commit d9095f5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/test_nested.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,25 +13,27 @@ class ActionMessage(NamedTuple):


class Action(NamedTuple):
id: str
id: int


class BaseAction(Handler):
async def handle(self, *requests: ActionMessage) -> None:
return gather(*[
await gather(*[
self.perform(Action(request.id))
for request in requests
])
...

async def perform(self, action: Action) -> None:
...


class CreateUserAction(BaseAction):
async def perform(self, action: Action):
async def perform(self, action: Action) -> None:
...


class UpdateUserAction(BaseAction):
async def perform(self, action: Action):
async def perform(self, action: Action) -> None:
...


Expand Down

0 comments on commit d9095f5

Please sign in to comment.