3 ms·
Can I use the generics introduced with the new type annotations in Python 3.5, so I can refer to Sequence[str] or something like that?
by guan 10y ago
Can I use the generics introduced with the new type annotations in Python 3.5, so I can refer to Sequence[str] or something like that?
- creshal 10y agoThe problem is that every string is, internally, also a sequence of (single-character) strings. So it's not that easy.