My Pybind11 wrapper uses the py::sequence protocol in various function declarations.
Similar to list and dict, these render to sequence in the newly generated stubfiles. However, unlike list and dict, sequence is not a reserved Python keyword. I think py::sequence should correspond to collections.abc.Sequence.
My Pybind11 wrapper uses the
py::sequence
protocol in various function declarations.Similar to
list
anddict
, these render tosequence
in the newly generated stubfiles. However, unlikelist
anddict
,sequence
is not a reserved Python keyword. I thinkpy::sequence
should correspond tocollections.abc.Sequence
.