-
Notifications
You must be signed in to change notification settings - Fork 76
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Interpolation of integers #156
Comments
Sounds like a duplicate of #129. |
Related to #129, not a duplicate. It's the exact inverse. |
Actually, I suspect this is exactly the same issue. The problem is that the configspec turned the values into non-strings. But the string interpolation stage only supports string-like inputs and does no coercion at all. In fact, you don't even need a configspec to cause this problem:
is sufficient to cause the issue if I want to fix this problem for a work project. I don't think the right thing to do is to perform coercion. Rather, perhaps the original strings could be stored along side the stored values and those values are used for string interpolation instead. Maybe fall back to using |
optimistically putting this in 5.1.0 assuming that the referenced PR helps me understand what's being requested |
Assume this config:
It finds that
c
matches with Template regex, tries to substitutea
intoc
, findsa
and tries to match Template regex witha
that is integer because of spec applied. So, it raisesTypeError: expected string or bytes-like object
.The text was updated successfully, but these errors were encountered: