Skip to content

Commit

Permalink
Switch from tuple to typing.Tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaster3558 committed Aug 16, 2023
1 parent 727021e commit c6400e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_interactions_handler.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncio
import json
from typing import Any, MutableMapping
from typing import Any, MutableMapping, Tuple

import discord
import pytest
Expand All @@ -13,7 +13,7 @@


class MockApp(aiointeractions.InteractionsApp):
verification: tuple[str, ...] = (json.dumps({'type': 1}), json.dumps(data))
verification: Tuple[str, ...] = (json.dumps({'type': 1}), json.dumps(data))

def _verify_request(self, headers: MutableMapping[str, Any], body: str) -> bool:
return str(body) in self.verification
Expand Down

0 comments on commit c6400e1

Please sign in to comment.