From 8c8e5db1da56578488645210834d93bec886ed03 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Thu, 9 May 2024 14:13:15 -0400 Subject: [PATCH] style: make pylint happy --- snapcraft/models/project.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/snapcraft/models/project.py b/snapcraft/models/project.py index bceac617a1..8c8ea023bd 100644 --- a/snapcraft/models/project.py +++ b/snapcraft/models/project.py @@ -1107,7 +1107,9 @@ def get_partitions(self) -> Optional[List[str]]: return _get_partitions_from_components(self.components) -def _format_pydantic_errors(errors, *, file_name: str = "snapcraft.yaml"): +def _format_pydantic_errors( # pylint: disable=redefined-outer-name + errors, *, file_name: str = "snapcraft.yaml" +): """Format errors. Example 1: Single error.