Skip to content

Commit

Permalink
ignore wrong type for async generator
Browse files Browse the repository at this point in the history
it is due to wrong annotation in plugins API, see
python/mypy#5385 (comment)
  • Loading branch information
UncleGoogle committed May 16, 2022
1 parent 417b184 commit 9d9995b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ async def get_subscriptions(self):

return choice_perks + choice_months

async def get_subscription_games(self, subscription_name: str, context: None) -> t.AsyncGenerator[t.List[SubscriptionGame], None]:
async def get_subscription_games(self, subscription_name: str, context: None) -> t.AsyncGenerator[t.List[SubscriptionGame], None]: # type: ignore
if subscription_name in [n.value for n in HumbleAppGameCategory]:
yield self._humbleapp_client.get_subscription_games(HumbleAppGameCategory(subscription_name))
return
Expand Down

0 comments on commit 9d9995b

Please sign in to comment.