```python def main(): t: tuple[i32, str] t = (1, 2) main() ``` This will generate an ASR, but actually should give an error that the second element is expected to be of `str` type.
Activity
namannimmo10 commentedon Apr 30, 2022
Same goes for dictionaries:
yashsain commentedon May 3, 2022
hey, I'd like to work on this. I am relatively new to open source, so can you please guide me a bit as to how to proceed. Thanks
certik commentedon May 3, 2022
See #439 which fixes something similar for lists. You have to implement a similar logic for tuples.