Skip to content

Commit f504fbf

Browse files
Fix mypy
1 parent 832eac8 commit f504fbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_cli_new.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def mock_write_text(self: Path, *args: Any, **kwargs: Any) -> None:
157157
# Fail when trying to write main.py (our template file)
158158
if self.name == "main.py":
159159
raise PermissionError("Permission denied")
160-
return original_write_text(self, *args, **kwargs)
160+
original_write_text(self, *args, **kwargs)
161161

162162
monkeypatch.setattr(Path, "write_text", mock_write_text)
163163

0 commit comments

Comments
 (0)