From 7da28461ca9d24bbe3269c77b0a9d4b10ba27314 Mon Sep 17 00:00:00 2001 From: Andrei Litvin Date: Mon, 3 Apr 2023 11:57:36 -0400 Subject: [PATCH] Restyle --- scripts/py_matter_idl/matter_idl/generators/__init__.py | 7 ++++--- .../matter_idl/generators/cpp/application/__init__.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/py_matter_idl/matter_idl/generators/__init__.py b/scripts/py_matter_idl/matter_idl/generators/__init__.py index 39252385139d3a..131d8e38ccbeba 100644 --- a/scripts/py_matter_idl/matter_idl/generators/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/__init__.py @@ -118,12 +118,13 @@ def __init__(self, storage: GeneratorStorage, idl: Idl, loader: Optional[jinja2. """ if not loader: if not fs_loader_searchpath: - fs_loader_searchpath=os.path.dirname(__file__) - loader=jinja2.FileSystemLoader(searchpath=fs_loader_searchpath) + fs_loader_searchpath = os.path.dirname(__file__) + loader = jinja2.FileSystemLoader(searchpath=fs_loader_searchpath) self.storage = storage self.idl = idl - self.jinja_env = jinja2.Environment(loader=loader, keep_trailing_newline=True) + self.jinja_env = jinja2.Environment( + loader=loader, keep_trailing_newline=True) self.dry_run = False RegisterCommonFilters(self.jinja_env.filters) diff --git a/scripts/py_matter_idl/matter_idl/generators/cpp/application/__init__.py b/scripts/py_matter_idl/matter_idl/generators/cpp/application/__init__.py index 09776fbc3c274c..2b9158864d28e4 100644 --- a/scripts/py_matter_idl/matter_idl/generators/cpp/application/__init__.py +++ b/scripts/py_matter_idl/matter_idl/generators/cpp/application/__init__.py @@ -12,8 +12,8 @@ # See the License for the specific language governing permissions and # limitations under the License. -from typing import List import os +from typing import List from matter_idl.generators import CodeGenerator, GeneratorStorage from matter_idl.matter_idl_types import Cluster, ClusterSide, Idl