from typing import Any, cast
def fully_typed(x: int) -> list:
acc = []
acc.append(x) return acc
def has_any(x: Any) -> list: return []
def body_any(x: int) -> list:
y = cast(Any, x) acc = []
acc.append(y)
return acc
def untyped(x): acc = []
acc.append(x)
return acc
def partial(x: int): acc = []
acc.append(x)
return acc
@some_unknown_wrapper def decorated(x: int) -> int:
return x
def body_any_in_list(x: int) -> list:
items = [cast(Any, x)]
acc = []
acc.append(items)
return acc
def body_any_in_fstring(x: int) -> list:
s = f"{cast(Any, x)}"
acc = []
acc.append(s)
return acc
def body_any_in_comprehension(xs: list) -> list:
ys = [cast(Any, x) for x in xs]
acc = []
acc.append(ys)
return acc