We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7baac76 commit 40a4770Copy full SHA for 40a4770
1 file changed
src/griffe2md/_internal/main.py
@@ -18,7 +18,7 @@
18
19
def _output(text: str, to: IO | str | None = None) -> None:
20
if isinstance(to, str):
21
- with open(to, "w") as output:
+ with Path(to).open("w") as output:
22
output.write(text)
23
else:
24
if to is None:
0 commit comments