style: using isinstance function as the main way for type checking

This commit is contained in:
Karim shoair
2025-07-30 03:14:23 +03:00
parent ae9ccaec79
commit 5bb1266fa5
5 changed files with 15 additions and 10 deletions
+1 -1
View File
@@ -240,7 +240,7 @@ class ResponseFactory:
return Response(
url=response.url,
content=response.content
if type(response.content) is bytes
if isinstance(response.content, bytes)
else response.content.encode(),
status=response.status_code,
reason=response.reason,