diff options
| author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-20 10:18:23 +0200 |
|---|---|---|
| committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-20 10:26:53 +0200 |
| commit | a03c542ecbf9b5f22ee7a6f0892a505646c341b3 (patch) | |
| tree | 7f320c212eb385aeea958090b5181fdea454cdc8 /astroid | |
| parent | 080dbcf5f9442c3a787a27fd1d7e65b1e4a632b3 (diff) | |
| download | astroid-git-a03c542ecbf9b5f22ee7a6f0892a505646c341b3.tar.gz | |
Use set literals instead of the set() callable
Diffstat (limited to 'astroid')
| -rw-r--r-- | astroid/brain/brain_namedtuple_enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/brain/brain_namedtuple_enum.py b/astroid/brain/brain_namedtuple_enum.py index f061d2ad..862e3a6e 100644 --- a/astroid/brain/brain_namedtuple_enum.py +++ b/astroid/brain/brain_namedtuple_enum.py @@ -252,7 +252,7 @@ def infer_enum(node, context=None): def infer_enum_class(node): """ Specific inference for enums. """ - names = set(('Enum', 'IntEnum', 'enum.Enum', 'enum.IntEnum')) + names = {'Enum', 'IntEnum', 'enum.Enum', 'enum.IntEnum'} for basename in node.basenames: # TODO: doesn't handle subclasses yet. This implementation # is a hack to support enums. |
