aboutsummaryrefslogtreecommitdiff
path: root/cogs/trans.py
diff options
context:
space:
mode:
authorLuca Matei Pintilie <lucafulger@gmail.com>2020-12-08 10:38:15 +0000
committerGitHub <noreply@github.com>2020-12-08 10:38:15 +0000
commit1fe12f137b3d9066dd8bed31c80713f084f38580 (patch)
tree2bf273d3d8a02b05360b0044db7fab9cae8a7ed9 /cogs/trans.py
parent0898b2a1713753fe5d03292ddf7397600df220f9 (diff)
downloadsteve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar.gz
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar.bz2
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar.lz
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar.xz
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.tar.zst
steve-bot-1fe12f137b3d9066dd8bed31c80713f084f38580.zip
Fixed misunderstanding of type hinting
Diffstat (limited to 'cogs/trans.py')
-rwxr-xr-xcogs/trans.py2
1 files changed, 1 insertions, 1 deletions
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):