【发布时间】:2021-03-05 09:02:49
【问题描述】:
我正在运行 python 3.7.5。行:
from __future__ import google_type_annotations
抛出以下错误:
SyntaxError: future feature google_type_annotations is not defined
另一个 S/O 帖子 here 指出了这个问题 - cmets 暗示安装 pytype 将解决这个问题。
-- 我安装了pytype,但是问题依旧。
我还简要查看了来自该网站的这些日志:https://aur.archlinux.org/packages/google-cloud-sdk/?O=10&PP=10,其中顺便提到了问题并引导我访问https://issuetracker.google.com/issues/146012762。如何解决?
【问题讨论】:
标签: python python-3.x syntax-error