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
We've identified some potential problems that can happen if any of the non-custom user attributes that are expected to be strings (that is, all of them except :anonymous) are instead set to a number or some other type. The Python SDK, like the other SDKs in weakly-typed languages, does not prevent this since the user object is simply a dictionary.
LaunchDarkly will not process analytics events for such a user.
If you set "secondary" to a non-string, and try to evaluate a flag that has a percentage rollout, the evaluation will fail.
We believe this behavior is the same in all existing versions of the Python SDK.
Our planned fix is to make the SDK coerce these values to strings as needed. To avoid causing unexpected changes in behavior for existing code, we will not enforce strict typing in this major version.
The text was updated successfully, but these errors were encountered:
We've identified some potential problems that can happen if any of the non-custom user attributes that are expected to be strings (that is, all of them except
:anonymous
) are instead set to a number or some other type. The Python SDK, like the other SDKs in weakly-typed languages, does not prevent this since the user object is simply a dictionary."secondary"
to a non-string, and try to evaluate a flag that has a percentage rollout, the evaluation will fail.We believe this behavior is the same in all existing versions of the Python SDK.
Our planned fix is to make the SDK coerce these values to strings as needed. To avoid causing unexpected changes in behavior for existing code, we will not enforce strict typing in this major version.
The text was updated successfully, but these errors were encountered: