Closed
Description
Required prerequisites
- Make sure you've read the documentation. Your issue may be addressed there.
- Search the issue tracker and Discussions to verify that this hasn't already been reported. +1 or comment there if it has.
- Consider asking first in the Gitter chat room or in a Discussion.
What version (or hash if on master) of pybind11 are you using?
Problem description
When a function returns std::filesystem::path
and I use <pybind11/stl/filesystem.h>
, the type annotation says Path
, which is a non-existent type, which makes pybind11_stubgen
choke on such functions.
Previous versions of Pybind used to return os.PathLike
, but this was broken in #5450.
Reproducible example code
No response
Is this a regression? Put the last known working version here if it is.
2.10.1