Mypy返回了一个我不能理解的错误(我也不能以简化的形式重新创建)。谷歌搜索错误被证明是困难的(带着问号)。typeBasePage = TypeVar("typeBasePage", bound="BasePage") # any instance subclass of BasePagetypeNavCls = Type
我正在使用MyPy作为类型检查器,我遇到了这种奇怪的行为。我希望有人能告诉我为什么会发生这种情况(周围的工作也会很好)。以下代码使用MyPy引发0错误: # ...kids: List["HackerNewsComment"] # A list of child comments under this one
作为参考,这也会引发0错误。class HackerNewsCom