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 GBeauregard
Recipients GBeauregard, JelleZijlstra
Date 2022-02-07.19:16:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1644261413.4.0.310987915665.issue46676@roundup.psfhosted.org>
In-reply-to
Content
from typing import ParamSpec
P = ParamSpec("P")
print(P.args == P.args)  # False
print(P.kwargs == P.kwargs)  # False

ParamSpec args and kwargs are not equal to themselves; this can cause problems for unit tests and type introspection w/ e.g. `get_type_hints`.

I will fix this by adding an __eq__ method like other places in typing.py
History
Date User Action Args
2022-02-07 19:16:53GBeauregardsetrecipients: + GBeauregard, JelleZijlstra
2022-02-07 19:16:53GBeauregardsetmessageid: <1644261413.4.0.310987915665.issue46676@roundup.psfhosted.org>
2022-02-07 19:16:53GBeauregardlinkissue46676 messages
2022-02-07 19:16:53GBeauregardcreate