From bc91ebab439d8ca86baeb61286931713d8b331f6 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Wed, 9 Aug 2023 12:51:41 +0100 Subject: [PATCH] Ruff lint update: Use `isinstance` (#5520) --- tests/infra/piccolo/generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/infra/piccolo/generator.py b/tests/infra/piccolo/generator.py index df7b35c1eb0b..6914d3d2ec69 100644 --- a/tests/infra/piccolo/generator.py +++ b/tests/infra/piccolo/generator.py @@ -38,7 +38,7 @@ def append( headers["content-type"] = content_type # Convert body to bytes if we were given a string - if type(body) == str: + if isinstance(body, str): body = body.encode("utf-8") request_line = f"{verb.upper()} {path} {http_version}"