Closed virtuald closed 10 months ago
But also, I've been really happy with the new improvements in stubgen, it's catching a lot more stuff that will hopefully result in better type checking :)
This is just a "helper" message. The actual errors that trigger this warning should be above, and should look like this:
I'm not seeing those errors. Is there a flag? I'm doing...
# Generate pyi modules
out = cfg["out"]
for stub in cfg["stubs"]:
sys.argv = [
"<dummy>",
"--exit-code",
"--ignore-invalid-expressions=<.*>",
"--root-suffix=",
"-o",
out,
stub,
]
pybind11_stubgen.main()
Oh I see, my ignore invalid expressions is going to ignore them.
It's a bug, If you ignore the expressions, the warning should not appear.
... not sure which functions are generating the warnings, and our packages are fairly large?