Skip to content

Commit

Permalink
Fix deprecated passing of keywords args to Path (#3738)
Browse files Browse the repository at this point in the history
* Fix deprecated passing of keywords args to Path

* Add release file
  • Loading branch information
DoctorJohn authored Dec 23, 2024
1 parent d983130 commit fdfb539
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Release type: patch

This release updates Strawberry internally to no longer pass keywords arguments
to `pathlib.PurePath`. Support for supplying keyword arguments to
`pathlib.PurePath` is deprecated and scheduled for removal in Python 3.14
2 changes: 1 addition & 1 deletion strawberry/extensions/pyinstrument.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def on_operation(self) -> Iterator[None]:

profiler.stop()

Path(self._report_path, encoding="utf-8").write_text(profiler.output_html())
self._report_path.write_text(profiler.output_html())


__all__ = ["PyInstrument"]

0 comments on commit fdfb539

Please sign in to comment.