From d365f3d685ec82e42f975c2a07730d8d25511d8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Tue, 19 Nov 2019 23:03:54 +0100 Subject: [PATCH] Removed unneeded condition --- pokepy/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pokepy/api.py b/pokepy/api.py index 9f589ab..631987f 100644 --- a/pokepy/api.py +++ b/pokepy/api.py @@ -151,7 +151,7 @@ def extract_single_element_list(func): @functools.wraps(func) def inner(*args, **kwargs): final = func(*args, **kwargs) - if isinstance(final, list) and len(final) == 1: + if len(final) == 1: final = final[0] return final return inner