foo = [1] def bar(*args: *foo): pass bar.__annotations__ foo = [1, 2] def bar(*args: *foo): pass