Message361461
The class inspect.Signature asks for parameters of type dict in python 3.8+ (and OrderedDict in earlier versions); however the __init__ function iterates over parameters as if it were a list, specifically:
for param in parameters:
name = param.name
kind = param.kind
...
Either the docstring should be changed to specify Sequence / List, or the implementation should be changed to iterate over the values of parameters:
for param in parameters.values():
...
(https://github.com/python/cpython/blob/2cca8efe46935c39c445f585bce54954fad2485b/Lib/inspect.py#L2734) |
|
Date |
User |
Action |
Args |
2020-02-05 23:37:24 | Nicholas Matthews | set | recipients:
+ Nicholas Matthews |
2020-02-05 23:37:24 | Nicholas Matthews | set | messageid: <1580945844.01.0.0291811112362.issue39566@roundup.psfhosted.org> |
2020-02-05 23:37:23 | Nicholas Matthews | link | issue39566 messages |
2020-02-05 23:37:23 | Nicholas Matthews | create | |
|