Skip to content

Commit

Permalink
chore: fix linter error
Browse files Browse the repository at this point in the history
  • Loading branch information
siddhantgoel committed Jul 28, 2024
1 parent 846af8a commit 634d7d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions streaming_form_data/targets.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def on_finish(self):
value = b"".join(self._temp_value)
self._temp_value = []

if self._type == str:
if self._type is str:
value = value.decode("UTF-8")
elif self._type == bytes:
elif self._type is bytes:
pass # already is bytes, no need to do anything
else:
value = self._type(value)
Expand Down

0 comments on commit 634d7d2

Please sign in to comment.