summaryrefslogtreecommitdiff
path: root/pylint/config/options_provider_mixin.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-11-25 16:09:42 +0100
committerGitHub <noreply@github.com>2021-11-25 16:09:42 +0100
commite4a1935d8806657294433dc03c8491dbd45da215 (patch)
tree908546b41fc055f60478dc68e60d4808dbe30b1e /pylint/config/options_provider_mixin.py
parent07a635cd2109bb4a44bd29078a0b5f9fc6f6bd5d (diff)
downloadpylint-git-e4a1935d8806657294433dc03c8491dbd45da215.tar.gz
Activate and fix existing use-set-for-membership checks (#5379)
* Activate and fix existing use-set-for-membership checks
Diffstat (limited to 'pylint/config/options_provider_mixin.py')
-rw-r--r--pylint/config/options_provider_mixin.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/config/options_provider_mixin.py b/pylint/config/options_provider_mixin.py
index a8526095c..d3872135c 100644
--- a/pylint/config/options_provider_mixin.py
+++ b/pylint/config/options_provider_mixin.py
@@ -56,7 +56,7 @@ class OptionsProviderMixIn:
action = optdict.get("action", "store")
if action == "store":
setattr(self.config, self.option_attrname(optname, optdict), value)
- elif action in ("store_true", "count"):
+ elif action in {"store_true", "count"}:
setattr(self.config, self.option_attrname(optname, optdict), 0)
elif action == "store_false":
setattr(self.config, self.option_attrname(optname, optdict), 1)