Ken Jin <kenjin4...@gmail.com> added the comment:
Thanks for the bug report Anup. I'm mildly confused by what you meant, so please help me here: I interpreted your request as wanting any type that implements `method` and `__iter__` to be considered a subtype of `IterableWithMethod`. But this already works at runtime and with mypy. Are you perhaps saying that you want issubclass(Foo, IterableWithMethod) to work? ---------- components: -Parser nosy: +Jelle Zijlstra, gvanrossum, kj -lys.nikolaou, pablogsal status: open -> pending _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue45024> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com