Closed sizmailov closed 11 months ago
The handling of submodules as the CLI argument was never perfect, but it got utterly broken in 1.0.
Fixes #135
I still get submodules as submodule.pyi instead of submodule/__init__.pyi with the latest version ?
submodule.pyi
submodule/__init__.pyi
The handling of submodules as the CLI argument was never perfect, but it got utterly broken in 1.0.
Compare tree structure in different versions
```text VERSION: π 0.16 + pybind11-stubgen module1.module2.module3 stubs βββ module1 βββ module2 βββ module3-stubs βββ __init__.pyi βββ setup.py 3 directories, 2 files + pybind11-stubgen module1.module2.module3 --root-module-suffix= stubs βββ module1 βββ module2 βββ module3 βββ __init__.pyi βββ setup.py 3 directories, 2 files + pybind11-stubgen module1.module2.module3 --root-module-suffix=-stubs stubs βββ module1 βββ module2 βββ module3-stubs βββ __init__.pyi βββ setup.py 3 directories, 2 files VERSION: π pybind11-stubgen~=1.0 + pybind11-stubgen module1.module2.module3 stubs βββ module3.pyi 0 directories, 1 file + pybind11-stubgen module1.module2.module3 --root-suffix= stubs βββ module1.module2.module3 βββ __init__.pyi 1 directory, 1 file + pybind11-stubgen module1.module2.module3 --root-suffix=-stubs stubs βββ module1.module2.module3-stubs βββ __init__.pyi 1 directory, 1 file VERSION: πFixes #135