diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-11-25 16:09:42 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-25 16:09:42 +0100 |
commit | e4a1935d8806657294433dc03c8491dbd45da215 (patch) | |
tree | 908546b41fc055f60478dc68e60d4808dbe30b1e /pylint/graph.py | |
parent | 07a635cd2109bb4a44bd29078a0b5f9fc6f6bd5d (diff) | |
download | pylint-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/graph.py')
-rw-r--r-- | pylint/graph.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pylint/graph.py b/pylint/graph.py index 038db7e4e..70a618678 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -64,11 +64,11 @@ class DotBackend: if size: self.emit(f'size="{size}"') if charset: - assert charset.lower() in ( + assert charset.lower() in { "utf-8", "iso-8859-1", "latin1", - ), f"unsupported charset {charset}" + }, f"unsupported charset {charset}" self.emit(f'charset="{charset}"') for param in additional_param.items(): self.emit("=".join(param)) |