Eclipse pydev无法识别未来的注释

Eclipse pydev无法识别未来的注释,eclipse,annotations,pydev,Eclipse,Annotations,Pydev,我正在使用eclipse 2020-09和pydev 8.0.0开发python桌面应用程序。 解释器是python 3.8,python语法设置为与解释器相同 如果一个类有一个成员方法,其中有一个参数属于同一类类型,则该类无法识别该成员方法。 相反,它给了我一个“未定义变量:一个”错误 添加未来导入行 from __future__ import annotations 没有修好它。 我不想把类名放在字符串中,比如 class A: def non_self(self, a: 'A'

我正在使用eclipse 2020-09和pydev 8.0.0开发python桌面应用程序。 解释器是python 3.8,python语法设置为与解释器相同

如果一个类有一个成员方法,其中有一个参数属于同一类类型,则该类无法识别该成员方法。 相反,它给了我一个“未定义变量:一个”错误

添加未来导入行

from __future__ import annotations
没有修好它。 我不想把类名放在字符串中,比如

class A:
    def non_self(self, a: 'A') -> bool:
        return self is not a

我能做什么?

我注意到它在PyDev 8.1.0版中得到了修复


谢谢@Fabio Zadrozny

如果PyDev还不支持,我会耐心地(或主动地,通过自己实现和提交)接受它并等待版本的实现。
class A:
    def non_self(self, a: 'A') -> bool:
        return self is not a