fix: fix 'consider-using-set-comprehension' for pylint
This commit is contained in:
parent
ab01f552e8
commit
7a0860363c
2 changed files with 2 additions and 1 deletions
|
@ -8,6 +8,7 @@ enable=anomalous-backslash-in-string,
|
|||
bare-except,
|
||||
broad-exception-caught,
|
||||
consider-using-f-string,
|
||||
consider-using-set-comprehension,
|
||||
cyclic-import,
|
||||
dangerous-default-value,
|
||||
disallowed-name,
|
||||
|
|
|
@ -200,7 +200,7 @@ class ProblemHandler(GenericHandler):
|
|||
:returns: List of system keys.
|
||||
"""
|
||||
checks = self.get_all_problem_checks()
|
||||
return sorted(set([check.system_key for check in checks]))
|
||||
return sorted({check.system_key for check in checks})
|
||||
|
||||
def get_system_title(self, system_key):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue