Message412781
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 |
|
Date |
User |
Action |
Args |
2022-02-07 19:16:53 | GBeauregard | set | recipients:
+ GBeauregard, JelleZijlstra |
2022-02-07 19:16:53 | GBeauregard | set | messageid: <1644261413.4.0.310987915665.issue46676@roundup.psfhosted.org> |
2022-02-07 19:16:53 | GBeauregard | link | issue46676 messages |
2022-02-07 19:16:53 | GBeauregard | create | |
|