Skip to content

Commit

Permalink
[pylint] fixing enum checker (#24068)
Browse files Browse the repository at this point in the history
* fixing enum checker

* extra space fix :(
  • Loading branch information
l0lawrence authored Apr 18, 2022
1 parent ba43917 commit 94c93f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/pylint_custom_plugin/pylint_guidelines_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -1763,7 +1763,7 @@ def visit_classdef(self, node):
self._enum_uppercase(node)
# Else if it does not have a metaclass, but it is an enum class
# Check both capitalization and throw pylint error for metaclass
elif node.bases[1].name == "Enum":
elif node.bases[0].name == "str" and node.bases[1].name == "Enum":
self.add_message(
"enum-must-inherit-case-insensitive-enum-meta", node=node, confidence=None
)
Expand Down

0 comments on commit 94c93f8

Please sign in to comment.