Skip to content

Commit

Permalink
fix: small fixn in the string type check
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jul 7, 2021
1 parent 9f522d6 commit 25c8b6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/appier/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@
list : lambda v: [y for y in itertools.chain(*[util.split_unescape(x, ",") for x in v])],
bool : lambda v: v if isinstance(v, bool) else\
not v in ("", "0", "false", "False"),
dict : lambda v: json.loads(v) if isinstance(v, legacy.UNICODE) else dict(v)
dict : lambda v: json.loads(v) if legacy.is_string(v) else dict(v)
}
""" The map associating the various data types with a proper custom
caster to be used for special data types (more complex) under some
Expand Down

0 comments on commit 25c8b6b

Please sign in to comment.