You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def visit_goals(lst, f):
for x in lst:
f(x)
goals = set()
visit_goals([], lambda g: goals.add(g))
def foo():
return [1, 2, 3]
goals = foo()
for g in goals:
print(g)
causes pytype 2020.4.22 to emit
<lambda>: No attribute 'add' on List[int] [attribute-error]