Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
Closed
Description
Right now there are two tests for name colisions of type parameters of type aliases and functions:
cpython/Lib/test/test_type_params.py
Lines 11 to 12 in27c68a6
deftest_name_collision_01(self): check_syntax_error(self,"""def func[**A, A](): ...""") cpython/Lib/test/test_type_aliases.py
Lines 11 to 12 in27c68a6
deftest_name_collision_01(self): check_syntax_error(self,"""type TA1[A, **A] = None""","duplicate type parameter 'A'")
They only testA and**A collide. But, PEP clearly states thatA and*A collide as well.
I will send a PR.
I am really sorry that I have to put all my review comments to#103764 as separate issues, but I've missed my chance to properly review the PEP's implementation.