[BUG]: STL casters should probably type cast from collections.abc
#5498
Labels
triage
New bug, unverified
collections.abc
#5498
Required prerequisites
What version (or hash if on master) of pybind11 are you using?
2.12.0
Problem description
If I have some class inheriting from
collections.abc
, it would not implicitly cast to corresponding C++ types. Example code shows a reproduction.This probably makes most sense as nowadays a lot of Python libraries use
Mapping/Set
as an abstract type instead of dictionary.Example code with set follows
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: