Skip to content
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

Fix the problem that boolean cannot work properly #12

Closed
wants to merge 1 commit into from

Conversation

ckdanny
Copy link

@ckdanny ckdanny commented Aug 30, 2018

No description provided.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.4%) to 83.75% when pulling f5d756b on ckdanny:master into aca11ee on seperman:master.

@@ -128,6 +128,8 @@ def get_obj(value, actual_type):
value = datetime.datetime.strptime(value, DATE_FORMAT).date()
elif actual_type in {dict, list} or isinstance(actual_type, (MutableMapping, Iterable)):
value = json.loads(value)
elif actual_type is bool:
value = actual_type == "True"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if I understand why this fixes the issue. If actual_type is bool then it is never equal to "True" string, right?

@seperman
Copy link
Owner

Hi @ckdanny
Thanks for the PR. Sorry it took me a long time to look at it. Left a comment.

@seperman seperman closed this Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants