gh-98240: Updated Path.rename docs, when it is atomic (GH-98245)

(cherry picked from commit 0023f51deb)

Co-authored-by: Mateusz <mateka@users.noreply.github.com>
This commit is contained in:
Miss Islington (bot) 2023-01-29 17:52:46 -08:00 committed by GitHub
parent 6aabbe2b15
commit efcab4dd63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1068,6 +1068,8 @@ call fails (for example because the path doesn't exist).
relative to the current working directory, *not* the directory of the Path
object.
It is implemented in terms of :func:`os.rename` and gives the same guarantees.
.. versionchanged:: 3.8
Added return value, return the new Path instance.