summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2018-05-22 11:36:48 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2018-05-22 20:36:48 +0200
commit5d17f5b1cbb875cc2ca28cee0942f3f92fb2a01d (patch)
tree7c9a03e938e77ffcf034c1176eaa4ae4b5d2bbca /astroid/builder.py
parent85dce2f8830d70442b55dcb5ca3198fbafec9b50 (diff)
downloadastroid-git-5d17f5b1cbb875cc2ca28cee0942f3f92fb2a01d.tar.gz
pyupgrade (#549)
Diffstat (limited to 'astroid/builder.py')
-rw-r--r--astroid/builder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py
index b870c5a6..2522ef01 100644
--- a/astroid/builder.py
+++ b/astroid/builder.py
@@ -83,7 +83,7 @@ def _can_assign_attr(node, attrname):
except NotImplementedError:
pass
else:
- if slots and attrname not in set(slot.value for slot in slots):
+ if slots and attrname not in {slot.value for slot in slots}:
return False
return True