Skip to content

Commit

Permalink
remove incorrect use of NoReturn
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Sep 4, 2024
1 parent 6d90842 commit 0f667ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spinn_utilities/make_tools/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"neural_build.mk", "Makefile.neural_build"])


def convert(src: str, dest: str, new_dict: bool) -> NoReturn:
def convert(src: str, dest: str, new_dict: bool):
"""
Converts a whole directory including sub-directories.
Expand All @@ -48,7 +48,7 @@ def convert(src: str, dest: str, new_dict: bool) -> NoReturn:


def _convert_dir(src_path: str, dest_path: str,
make_directories: Optional[bool] = False) -> None:
make_directories: Optional[bool] = False):
"""
Converts a whole directory including sub directories.
Expand All @@ -73,7 +73,7 @@ def _convert_dir(src_path: str, dest_path: str,
print(f"Unexpected file {source}")


def _mkdir(destination: str) -> NoReturn:
def _mkdir(destination: str):
if not os.path.exists(destination):
os.mkdir(destination)
if not os.path.exists(destination):
Expand Down

0 comments on commit 0f667ab

Please sign in to comment.