Message244872
Nathan, consider the following signature:
def foo(a=0:''): pass
now, sig.parameters['a'].annotation will be '' and .default will be 0, and they will fail 'if param.annotation or param.default' check. That's why we encourage checks like 'if param.annotation is not param.empty'.
Closing this issue. |
|
Date |
User |
Action |
Args |
2015-06-05 19:20:56 | yselivanov | set | recipients:
+ yselivanov, Lucretiel |
2015-06-05 19:20:56 | yselivanov | set | messageid: <1433532056.19.0.589560956529.issue23653@psf.upfronthosting.co.za> |
2015-06-05 19:20:56 | yselivanov | link | issue23653 messages |
2015-06-05 19:20:55 | yselivanov | create | |
|