Skip to content

Commit

Permalink
refactor: resolved mypy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-pisman committed Oct 13, 2023
1 parent 44a7dce commit 762fa14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/unipoll_api/actions/poll.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ async def get_polls(workspace: Workspace | None = None,
if poll.public:
poll_list.append(poll)
else:
poll_list.append(await get_poll(poll, check_permissions))
poll_list.append(await get_poll(poll, check_permissions)) # type: ignore
# Build poll list and return the result
for poll in poll_list:
for poll in poll_list: # type: ignore
poll_list.append(PollSchemas.PollShort(**poll.model_dump())) # type: ignore
return PollSchemas.PollList(polls=poll_list)

Expand Down

0 comments on commit 762fa14

Please sign in to comment.