Skip to content

Commit 9593c83

Browse files
GeoffreyFrogeyeKronopt
authored andcommitted
Removed unneeded condition
isinstance(final, list) is not needed as 'final' is always a list
1 parent 8233cbf commit 9593c83

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pokepy/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def extract_single_element_list(func):
151151
@functools.wraps(func)
152152
def inner(*args, **kwargs):
153153
final = func(*args, **kwargs)
154-
if isinstance(final, list) and len(final) == 1:
154+
if len(final) == 1:
155155
final = final[0]
156156
return final
157157
return inner

0 commit comments

Comments
 (0)