From fb1653c8ff601ae8fbf8480b09cf2442e65a75ec Mon Sep 17 00:00:00 2001 From: Mango0x45 Date: Wed, 30 Sep 2020 13:31:41 +0200 Subject: Added type hints to look smart --- cogs/trans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cogs/trans.py') diff --git a/cogs/trans.py b/cogs/trans.py index d2aead2..88e6b76 100755 --- a/cogs/trans.py +++ b/cogs/trans.py @@ -6,7 +6,7 @@ from google.cloud import translate_v2 as translate translate_client = translate.Client() -async def translateMsg(text, target="en"): +async def translateMsg(text: str, target="en": str) -> str: # Text can also be a sequence of strings, in which case this method # will return a sequence of results for each text. if isinstance(text, six.binary_type): -- cgit v1.2.3