You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is to say, there's an assumption in the code that keys are str and thus errors like "int has no attribute startswith" and the likes.
Quick and easy to fix by just casting all keys to strings after they're read (although that's may not be optimal, because the code using Alviss to read yaml/json may be expecting int keys but now gets str and needs to cast to int... :-/
There's also a workaround where you just surround the key with quotes to force them to be a string.
The text was updated successfully, but these errors were encountered:
That is to say, there's an assumption in the code that keys are str and thus errors like "int has no attribute startswith" and the likes.
Quick and easy to fix by just casting all keys to strings after they're read (although that's may not be optimal, because the code using Alviss to read yaml/json may be expecting int keys but now gets str and needs to cast to int... :-/
There's also a workaround where you just surround the key with quotes to force them to be a string.
The text was updated successfully, but these errors were encountered: