pyo3/newsfragments/2695.changed.md

4 lines
226 B
Markdown
Raw Normal View History

`PyType::is_subclass`, `PyErr::is_instance` and `PyAny::is_instance` now take
`&PyAny` instead of `&PyType` arguments, so that they work with objects that
pretend to be types using `__subclasscheck__` and `__instancecheck__`.