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,
|
bare-except,
|
||||||
broad-exception-caught,
|
broad-exception-caught,
|
||||||
consider-using-f-string,
|
consider-using-f-string,
|
||||||
|
consider-using-set-comprehension,
|
||||||
cyclic-import,
|
cyclic-import,
|
||||||
dangerous-default-value,
|
dangerous-default-value,
|
||||||
disallowed-name,
|
disallowed-name,
|
||||||
|
|
|
@ -200,7 +200,7 @@ class ProblemHandler(GenericHandler):
|
||||||
:returns: List of system keys.
|
:returns: List of system keys.
|
||||||
"""
|
"""
|
||||||
checks = self.get_all_problem_checks()
|
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):
|
def get_system_title(self, system_key):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue