commit | 81e91c95a51daaa77efa3a3758ecba0475cfef38 | [log] [tgz] |
---|---|---|
author | Gregory Beauregard <greg@greg.red> | Sat Jun 25 01:35:33 2022 -0500 |
committer | GitHub <noreply@github.com> | Sat Jun 25 09:35:33 2022 +0300 |
tree | 88fe3a23f998737f846ec9c4d2d9a8701510cfd8 | |
parent | 605e9c66ad367b54a847f9fc65447a071742f554 [diff] |
bpo-46642: Explicitly disallow subclassing of instaces of TypeVar, ParamSpec, etc (GH-31148) The existing test covering this case passed only incidentally. We explicitly disallow doing this and add a proper error message. Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>