Hey Eli,

* Tayrien, Eli (HBO) <eli.tayr...@hbo.com> [2016-01-11 18:26:20 +0000]:
> class MyEnum(Enum):
>     Value1 = 1
> Value2 = 2

As an aside: As many mail clients like to mess up the indentation when
sending, it's best to use a pastebin or attach a script (if the
mailinglist allows attachments) instead of posting it inline.

> # Huh? this line generates
> # warning R0204: Redefinition of myEnum type from EnumRepro.MyEnum.Value1 to
> # EnumRepro.MyEnum.Value2 [R:redefined-variable-type]

That smells like a pylint bug. I'm guessing astroid (the analysis
library behind pylint) or pylint need to handle enums in some special
way.

FWIW, I also can reproduce it with astroid/pylint from the git
repository.

I suggest you open an issue at [1] and mention @lmedioni as she added
that checker and is probably most familiar with it.

Thanks!

Florian

[1] https://github.com/PyCQA/pylint/issues/new

-- 
http://www.the-compiler.org | m...@the-compiler.org (Mail/XMPP)
   GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
         I love long mails! | http://email.is-not-s.ms/

Attachment: signature.asc
Description: Digital signature

_______________________________________________
code-quality mailing list
code-quality@python.org
https://mail.python.org/mailman/listinfo/code-quality

Reply via email to