typing_extensions icon indicating copy to clipboard operation
typing_extensions copied to clipboard

Backport allowing passing an ellipsis as the last argument of Concatenate to 3.10

Open FasterSpeeding opened this issue 3 years ago • 1 comments

https://github.com/python/cpython/pull/30969 allowed and documented this behaviour for 3.11.

This seemingly can't be supported for <=3.9 according to https://github.com/python/typing_extensions/issues/48 but changes made by https://github.com/python/cpython/pull/30959 to the stdlib typing module lead to this behaviour erroring on later 3.10 releases when using typing_extensions.Concatenate.

FasterSpeeding avatar Jan 23 '23 05:01 FasterSpeeding

This is now documented as a limitation at https://typing-extensions.readthedocs.io/en/latest/#Concatenate. If there is a reasonable way to fix it, I'd accept a PR.

JelleZijlstra avatar May 22 '23 00:05 JelleZijlstra