mirror of
https://github.com/esphome/esphome.git
synced 2025-09-02 19:32:19 +01:00
Bump pylint from 2.15.10 to 2.16.2 (#4426)
* Bump pylint from 2.15.10 to 2.16.2 Bumps [pylint](https://github.com/PyCQA/pylint) from 2.15.10 to 2.16.2. - [Release notes](https://github.com/PyCQA/pylint/releases) - [Commits](https://github.com/PyCQA/pylint/compare/v2.15.10...v2.16.2) --- updated-dependencies: - dependency-name: pylint dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Lint --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -174,10 +174,9 @@ class ArrayInitializer(Expression):
|
||||
if not self.args:
|
||||
return "{}"
|
||||
if self.multiline:
|
||||
cpp = "{\n"
|
||||
for arg in self.args:
|
||||
cpp += f" {arg},\n"
|
||||
cpp += "}"
|
||||
cpp = "{\n "
|
||||
cpp += ",\n ".join(str(arg) for arg in self.args)
|
||||
cpp += ",\n}"
|
||||
else:
|
||||
cpp = f"{{{', '.join(str(arg) for arg in self.args)}}}"
|
||||
return cpp
|
||||
|
Reference in New Issue
Block a user