Type hints when unpacking a tuple?

According to PEP-0526, you should annotate the types first, then do the unpacking

a: int
b: int
a, b = t

Leave a Comment