From 1fe12f137b3d9066dd8bed31c80713f084f38580 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Tue, 8 Dec 2020 11:38:15 +0100 Subject: Fixed misunderstanding of type hinting --- cogs/trans.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cogs') diff --git a/cogs/trans.py b/cogs/trans.py index 88e6b76..34bda99 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: str, target="en": str) -> str: +async def translateMsg(text: str, target: str="en") -> 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