From 983cb17278886042b4ec451cb8dcdb5ac79cf123 Mon Sep 17 00:00:00 2001 From: htfab Date: Mon, 6 May 2024 03:09:09 +0200 Subject: [PATCH] assert analog_pins is not None to please mypy --- documentation.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/documentation.py b/documentation.py index f561a37..87bbc45 100644 --- a/documentation.py +++ b/documentation.py @@ -88,6 +88,7 @@ def write_datasheet(self, markdown_file: str, pdf_file: Optional[str] = None): self.projects.sort(key=lambda x: x.mux_address) for project in self.projects: + assert project.analog_pins is not None yaml_data = project.get_project_docs_dict() yaml_data.update( { @@ -206,6 +207,7 @@ def build_hugo_content(self, hugo_root: str) -> None: project_image_dir = os.path.join(project_dir, "images") os.makedirs(project_dir) os.makedirs(project_image_dir) + assert project.analog_pins is not None yaml_data = project.get_project_docs_dict() yaml_data.update( {