gh-144380: Fix incorrect type check in `buffered_iternext()` (#144381)

2 files changed