You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ChocoPy/pa2-tests/core/bad_none_assign.py

15 lines
160 B

class A(object):
x:int = 1
y:[bool] = None
z:str = ""
a:A = None
a = A()
# Cannot assign None to integer/bool/str types
z = None
a.x = None
y[0] = None