211117-2327 python annotating number of elements in Tuple, Sequence, List in typing
whatever: List[str,str,str]
can’t be done, because lists inherently change size- if you know the size beforehand, use a tuple, that can be parametrized like that
- In general, named tuples 3 are really cool in such scenarios
Nel mezzo del deserto posso dire tutto quello che voglio.
comments powered by Disqus