Add something like Move type hint to typing module. It will tell the analyzer 
that the input parameter of the function is moved and can not be used after. 
For example:
```
def f(d: Move[dict]) -> dict:
    d['a'] = 2
    return d

d = {1: 2}
f(d)
print(d[1])  # mistake, using of moved value
_______________________________________________
Python-ideas mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/[email protected]/message/WJXFEVKR3IU7BAI57DFUUZZYS6UA3P6N/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to