Skip to content

Commit

Permalink
Compare types with is-operator
Browse files Browse the repository at this point in the history
  • Loading branch information
erdewit committed Aug 8, 2023
1 parent 903f8b5 commit f239d18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ib_insync/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def isnamedtupleinstance(x):
f = getattr(t, '_fields', None)
if not isinstance(f, tuple):
return False
return all(type(n) == str for n in f)
return all(type(n) is str for n in f)


def tree(obj):
Expand Down

0 comments on commit f239d18

Please sign in to comment.