Skip to content

Commit

Permalink
assert analog_pins is not None to please mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
htfab committed May 6, 2024
1 parent d9fb64c commit 983cb17
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions documentation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
{
Expand Down Expand Up @@ -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(
{
Expand Down

0 comments on commit 983cb17

Please sign in to comment.