【问题标题】:Where can I find the PyCharm source method signatures?在哪里可以找到 PyCharm 源方法签名?
【发布时间】:2020-12-15 05:17:04
【问题描述】:

我有一个覆盖__setstate__ 的子类,PyCharm 不断显示以下消息:

Signature of method A.__setstate__() does not match signature of base method in class 'np.ndarray'

PyCharm 用于此比较的文件位于何处?我在 NumPy 源代码(通过他们的 GitHub 和我的安装)中找不到 __setstate__ 具有 PyCharm 说它必须具有的签名。

【问题讨论】:

    标签: python numpy pycharm numpy-ndarray linter


    【解决方案1】:

    尝试通过Ctrl+U/Cmd+U 或排水沟上的图标导航到它:https://www.jetbrains.com/help/pycharm/navigating-through-the-source-code.html#go_to_implementation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-06-16
      • 1970-01-01
      • 2011-07-22
      • 1970-01-01
      • 2017-05-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多