This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author JelleZijlstra
Recipients AlexWaygood, FHTMitchell, JelleZijlstra, dlukes, eric.smith, gvanrossum, kj, levkivskyi, python-dev, rhettinger, serhiy.storchaka, sobolevn
Date 2022-03-05.02:57:54
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1646449074.19.0.628790778178.issue43923@roundup.psfhosted.org>
In-reply-to
Content
It doesn't really. If you do `x = New([1], (2, 3))` you get:

main.py:11: error: List item 0 has incompatible type "int"; expected "T"
main.py:11: error: Argument 2 to "New" has incompatible type "Tuple[int, int]"; expected "Tuple[T, T]"

https://mypy-play.net/?mypy=latest&python=3.10&gist=a13c7a33c55a3aeee95324d46cd03ffd
History
Date User Action Args
2022-03-05 02:57:54JelleZijlstrasetrecipients: + JelleZijlstra, gvanrossum, rhettinger, eric.smith, python-dev, serhiy.storchaka, levkivskyi, dlukes, FHTMitchell, sobolevn, kj, AlexWaygood
2022-03-05 02:57:54JelleZijlstrasetmessageid: <1646449074.19.0.628790778178.issue43923@roundup.psfhosted.org>
2022-03-05 02:57:54JelleZijlstralinkissue43923 messages
2022-03-05 02:57:54JelleZijlstracreate