Skip to content

Commit

Permalink
drop prometheus-async type ignores (should fix #133)
Browse files Browse the repository at this point in the history
  • Loading branch information
technillogue committed Feb 23, 2022
1 parent 374f538 commit a81e644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mobfriend/mobfriend.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ async def do_no_tip(self, msg: Message) -> Response:
return "Okay, nevermind about that tip."
return "Couldn't find a tip in process to cancel!"

@time(REQUEST_TIME) # type: ignore
@time(REQUEST_TIME)
@requires_admin
async def do_pay(self, msg: Message) -> Response:
if msg.arg1:
Expand All @@ -235,7 +235,7 @@ async def do_pay(self, msg: Message) -> Response:
self.signal_roundtrip_latency.append((msg.timestamp, "payment", delta))
return None

@time(REQUEST_TIME) # type: ignore
@time(REQUEST_TIME)
async def payment_response(self, msg: Message, amount_pmob: int) -> Response:
if msg.source in self.exchanging_gift_code:
resp_list = await self.build_gift_code(amount_pmob - FEE)
Expand Down

0 comments on commit a81e644

Please sign in to comment.