diff options
author | Luca Matei Pintilie <lucafulger@gmail.com> | 2020-12-08 10:38:15 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-08 10:38:15 +0000 |
commit | 1fe12f137b3d9066dd8bed31c80713f084f38580 (patch) | |
tree | 2bf273d3d8a02b05360b0044db7fab9cae8a7ed9 /cogs/trans.py | |
parent | 0898b2a1713753fe5d03292ddf7397600df220f9 (diff) | |
download | steve-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 '')
-rwxr-xr-x | cogs/trans.py | 2 |
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): |