[issue46396] Invalid usage of `Concatenate` is not covered at all

2022-01-16 Thread Alex Waygood
Change by Alex Waygood : -- nosy: +gvanrossum, kj ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue46396] Invalid usage of `Concatenate` is not covered at all

2022-01-16 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +28823 stage: -> patch review pull_request: https://github.com/python/cpython/pull/30619 ___ Python tracker ___ _

[issue46396] Invalid usage of `Concatenate` is not covered at all

2022-01-16 Thread Nikita Sobolev
New submission from Nikita Sobolev : Right now if I remove these lines: ```python if parameters == (): raise TypeError("Cannot take a Concatenate of no types.") if not isinstance(parameters, tuple): parameters = (parameters,) if not isinstance(parameters[-1], ParamSp