Closed drtconway closed 4 years ago
Hi @drtconway, thanks for the report. You're right the janis-assistant was guessing the type based on the value that it provided (and some order):
I've added some input value coercion to data types, and now the assistant will attempt to coerce an input value.
Hi Janis,
I have a wrapper (code below) that takes a string argument to which I wish to pass the string
21
.As in:
This fails with a stacktrace for the following error:
I expect it's automagically converting the string argument into an int, because it looks like one, and then complaining when the horse has bolted.
For bonus marks, I tried using YAML for the inputs, and if you use
it fails (correctly), but if you use
it succeeds. (There's a subtle round-tripping bug in the main Python YAML implementation, which I can explain if anyone cares, but it relates to integers and quoting.)
The code
view_region.py
: