Skip to content

Commit

Permalink
raise ValueError("unexpected no return") for mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Oct 16, 2024
1 parent 50f3506 commit cb80f21
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spinn_utilities/make_tools/log_sqllite_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ def set_log_info(
LIMIT 1
""", (log_level, line_num, original, file_id)):
return row["log_id"]
raise ValueError("unexpected no return")

def get_log_info(self, log_id: str) -> Optional[Tuple[int, str, int, str]]:
"""
Expand Down Expand Up @@ -306,3 +307,4 @@ def get_max_log_id(self):
FROM log
"""):
return row["max_id"]
raise ValueError("unexpected no return")

0 comments on commit cb80f21

Please sign in to comment.