| 1 | #!/usr/bin/env python2 |
| 2 | """ |
| 3 | invalid_assignment.py |
| 4 | """ |
| 5 | |
| 6 | from typing import Tuple |
| 7 | |
| 8 | |
| 9 | def a(): |
| 10 | # type: () -> Tuple[int, int] |
| 11 | return (1, 2) |
| 12 | |
| 13 | |
| 14 | def run_tests(): |
| 15 | # type: () -> None |
| 16 | |
| 17 | # OK |
| 18 | a, b = a() |
| 19 | |
| 20 | # OK |
| 21 | c = 1, 2 |
| 22 | |
| 23 | # NOT OK |
| 24 | x, y = 1, 2 |