Documentation
Python 3.14 has a change that "A single dot (”.”) is considered a valid suffix."
This is not listed in pathlib.PurePath.stem documentation.
But Python 3.14 changes what stem returns because single dot is considered a valid suffix.
Python 3.14:
>>> PurePosixPath('my/library.').stem
'library'
Python 3.13:
>>> PurePosixPath('my/library.').stem
'library.'