Bug] Using `filter` in `itertools.chain` makes them both infer wrong types. · Issue #8226 · python/mypy · GitHub
![Bob Belderbos on X: "You can use itertools.chain to flatten a list of iterables (for more levels use recursion) #Python #tips https://t.co/ApqrxOg1IS" / X Bob Belderbos on X: "You can use itertools.chain to flatten a list of iterables (for more levels use recursion) #Python #tips https://t.co/ApqrxOg1IS" / X](https://pbs.twimg.com/media/FNfRAbrXwAM9RTa.jpg)
Bob Belderbos on X: "You can use itertools.chain to flatten a list of iterables (for more levels use recursion) #Python #tips https://t.co/ApqrxOg1IS" / X
![Every Python 🐍 programmer should learn about `itertools`. It's a great module with lots of elegant and efficient tools! 🚀 You'll write better co - Thread from Rodrigo 🐍🚀 @mathsppblog - Rattibha Every Python 🐍 programmer should learn about `itertools`. It's a great module with lots of elegant and efficient tools! 🚀 You'll write better co - Thread from Rodrigo 🐍🚀 @mathsppblog - Rattibha](https://pbs.twimg.com/media/FtrCqxLXsAEHI0s.jpg)