Skip to content

Commit 40a4770

Browse files
committed
ci: Use Path.open instead of open
1 parent 7baac76 commit 40a4770

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/griffe2md/_internal/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
def _output(text: str, to: IO | str | None = None) -> None:
2020
if isinstance(to, str):
21-
with open(to, "w") as output:
21+
with Path(to).open("w") as output:
2222
output.write(text)
2323
else:
2424
if to is None:

0 commit comments

Comments
 (0)