From dac64d302d8f441e3e9c74d710e702da3c70038f Mon Sep 17 00:00:00 2001 From: Chandler May <457238+ccmaymay@users.noreply.github.com> Date: Thu, 12 Oct 2023 13:13:59 -0400 Subject: [PATCH] Fix flake8 error in util/twitter --- concrete/util/twitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/concrete/util/twitter.py b/concrete/util/twitter.py index 05c1109..be4434f 100644 --- a/concrete/util/twitter.py +++ b/concrete/util/twitter.py @@ -136,7 +136,7 @@ def set_flat_fields(concrete_object, twitter_dict): entries will be used to set fields on concrete_object """ for key in twitter_dict.keys(): - if type(twitter_dict[key]) != dict: + if not isinstance(twitter_dict[key], dict): camelcased_key = snake_case_to_camelcase(key) if hasattr(concrete_object, camelcased_key): setattr(concrete_object, camelcased_key, twitter_dict[key])