3 ms·
On non-iterable strings: The recursive type problem can be solved, with something like what is proposed in [0]. (I have an implementation of a fix on github lin
by joshuamorton 6y ago
On non-iterable strings: The recursive type problem can be solved, with something like what is proposed in [0]. (I have an implementation of a fix on github linked from that thread, there's edge case fixes and PEP's scare me, but technically it's feasible).
[0]: https://mail.python.org/archives/list/typing-sig@python.org/thread/OLCQHSNCLM2TOHRQWB3WPSI66AA5A3G7/ https://mail.python.org/archives/list/typing-sig@python.org/...
- spott 6y agoWhile that may solve the recursive type problem, it doesn't really solve the "iterating over strings is rarely what you actually want to do" problem.