Unexpected Warning using Enum Functional API - PyCharm Bug

吃可爱长大的小学妹 提交于 2020-01-24 04:24:07

问题


Using the Functional API example given in documentation 8.13.12. I get the following Warning (using python 3.6). The code does work in the console but I'd rather not have warnings upon my code inspection. What am I doing wrong? And how can I get rid of the warning?

from enum import Enum
Animal = Enum('Animal', 'ANT BEE CAT DOG')

Unexpected argument(s) Possible callees: Enum.new(cls: Enum, value) object(self: object) less... (Ctrl+F1) Inspection info: Reports discrepancies between declared parameters and actual arguments, as well as incorrect arguments (e.g. duplicate named arguments) and incorrect argument order. Decorators are analyzed, too

来源:https://stackoverflow.com/questions/54030579/unexpected-warning-using-enum-functional-api-pycharm-bug

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!