Skip to content

Commit

Permalink
fix[test]: linter check on type comparison
Browse files Browse the repository at this point in the history
Signed-off-by: mayeut <mayeut@users.noreply.github.com>
  • Loading branch information
mayeut committed Jul 30, 2023
1 parent 44bedfd commit b56eebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psutil/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,7 @@ def is_namedtuple(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)


if POSIX:
Expand Down

0 comments on commit b56eebc

Please sign in to comment.