]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Argument Clinic: fix bare "type" in annotations (#112915)
authorJelle Zijlstra <jelle.zijlstra@gmail.com>
Sun, 10 Dec 2023 15:30:02 +0000 (07:30 -0800)
committerGitHub <noreply@github.com>
Sun, 10 Dec 2023 15:30:02 +0000 (15:30 +0000)
commit1f9cd3c1e5410e45ade4362713229fa445ea6962
tree091012f7c581404918755e4af592283729a45d5b
parent9d02d3451a61521c65db6f93596ece2f572f1f3e
Argument Clinic: fix bare "type" in annotations (#112915)

Bare "type" in annotations should be equivalent to "type[Any]"; see
https://discuss.python.org/t/inconsistencies-between-type-and-type/37404
and python/mypy#16366. It's better to use "type[object]", which is
safer and unambiguous.
Tools/clinic/clinic.py