File size: 115 Bytes
5eb110b
 
 
 
1
2
3
4
5
def f():
    a: int
    print(a)  # raises UnboundLocalError
    # Commenting out the a: int makes it a NameError.