def f(x: int | None):
x + 1 # ERR
if x != None:
print(x + 1) # OK
if isinstance(x, int):
return None
f(1)