OILS / mycpp / examples / invalid_assignment.py View on Github | oils.pub

24 lines, 7 significant
1#!/usr/bin/env python2
2"""
3invalid_assignment.py
4"""
5
6from typing import Tuple
7
8
9def a():
10 # type: () -> Tuple[int, int]
11 return (1, 2)
12
13
14def 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