Skip to content

Commit 40f855e

Browse files
Make ruff happy
1 parent 9dd9ad7 commit 40f855e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/webengine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ def eval_js_function(self, *args):
419419
format_string = ""
420420

421421
for index, arg in enumerate(function_args):
422-
if type(arg) == str:
422+
if isinstance(arg, str):
423423
format_string += '\"{}\"'.format(arg)
424424
else:
425425
format_string += '{}'.format(json.dumps(arg))

0 commit comments

Comments
 (0)