Hey Eli,
* Tayrien, Eli (HBO)
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 | me@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/