Skip to content

Commit 5c8402e

Browse files
authored
fix(utils): use semantic operator
1 parent dce3878 commit 5c8402e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

filetype/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ def get_bytes(obj):
4949
"""
5050
kind = type(obj)
5151

52-
if kind == bytearray:
52+
if kind is bytearray:
5353
return signature(obj)
5454

55-
if kind == str:
55+
if kind is str:
5656
return get_signature_bytes(obj)
5757

5858
if kind is bytes:

0 commit comments

Comments
 (0)