You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A number of the type hints have been updated for never versions of Python but are now incorrect for older versions of Python.
An example is collections.abc.Buffer which was added in Python 3.12 however there are many more examples.
If an extension is compiled against an older version of Python the stub files generated will be incorrect for that version and a static type checker will correctly throw errors.
I would expect the type hints to be correct for the version of Python the extension was compiled against regardless of which version it is.
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered:
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
05a6a03
Problem description
A number of the type hints have been updated for never versions of Python but are now incorrect for older versions of Python.
An example is
collections.abc.Buffer
which was added in Python 3.12 however there are many more examples.If an extension is compiled against an older version of Python the stub files generated will be incorrect for that version and a static type checker will correctly throw errors.
I would expect the type hints to be correct for the version of Python the extension was compiled against regardless of which version it is.
Reproducible example code
Is this a regression? Put the last known working version here if it is.
Not a regression
The text was updated successfully, but these errors were encountered: