New methods are generally marked as "new in version X". For example, pathlib.Path.is_relative_to is marked as "new in version 3.9" : https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.is_relative_to

pathlib.Path.absolute was added in version 3.11, but is not marked as such: https://docs.python.org/3/library/pathlib.html#pathlib.Path.absolute

New methods are generally marked as "new in version X". For example,
pathlib.Path.is_relative_tois marked as "new in version 3.9" : https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.is_relative_topathlib.Path.absolutewas added in version 3.11, but is not marked as such: https://docs.python.org/3/library/pathlib.html#pathlib.Path.absolutepathlib.Path.absolute()docs to addversionadded#99416