gpt4 book ai didi

pylint - pylint中的I1101是什么意思

转载 作者:行者123 更新时间:2023-12-04 11:30:27 27 4
gpt4 key购买 nike

什么I在pylint中是什么意思?我还没有看到以 I 开头的错误消息前。
基于 https://docs.pylint.org/en/1.6.0/tutorial.html , I不包括在以下列表中

  * (C) convention, for programming standard violation
* (R) refactor, for bad code smell
* (W) warning, for python specific problems
* (E) error, for much probably bugs in the code
* (F) fatal, if an error occurred which prevented pylint from doing
它与 C++ 扩展有关。
Consider adding this module to extension-pkg-whitelist if you want to perform analysis based on run-time introspection of living objects. (c-extension-no-member)

最佳答案

我在源代码中找到了它(Pylint 2.6.0 版):

"I1101": (
"%s %r has no %r member%s, but source is unavailable. Consider "
"adding this module to extension-pkg-whitelist if you want "
"to perform analysis based on run-time introspection of living objects.",
"c-extension-no-member",
"Used when a variable is accessed for non-existent member of C "
"extension. Due to unavailability of source static analysis is impossible, "
"but it may be performed by introspecting living objects in run-time.",
还有一个错误代码列表 here包括“我”。
至于什么 I方法:
  • 如果您可以重现该消息,那么我建议生成 Pylint 报告,然后打印一个包含结果的所有错误类别的列表。希望I类别也是。
    要启用报告,当您运行 Pylint 时,只需添加标志 -rn--reports=y
  • This文档可能会帮助您了解更多信息,因此您可以根据需要禁用此错误。
  • 关于pylint - pylint中的I1101是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64013544/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com