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 kj
Recipients gvanrossum, kj, sobolevn
Date 2022-01-16.09:54:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1642326842.4.0.318318663509.issue46395@roundup.psfhosted.org>
In-reply-to
Content
> In this case, do we need to make this a `TypeError`? Right now you can use `Concatenate` as the return type.

Last I recall, we stopped checking anything in the param args of Callable since 3.10 because it has too many problems with inter-version typing and typing_extensions usage. E.g. in Python 3.8

Callable[typing_extensions.Concatenate[...], ...]

was extremely difficult to implement in typing_extensions since Callable checks were too strict back then (they only allowed list of args). So to avoid such problems in the future, we ceased all param args checking.

For the return arg, I'm not too keen on adding more checks for the same reason of allowing future additions. Also the static type checker should warn the user and mypy correctly does that.
History
Date User Action Args
2022-01-16 09:54:02kjsetrecipients: + kj, gvanrossum, sobolevn
2022-01-16 09:54:02kjsetmessageid: <1642326842.4.0.318318663509.issue46395@roundup.psfhosted.org>
2022-01-16 09:54:02kjlinkissue46395 messages
2022-01-16 09:54:02kjcreate