From 83eaa2100cbeb50ce03771cea2eb09dd505c7a87 Mon Sep 17 00:00:00 2001 From: teacup-on-rockingchair <315160+teacup-on-rockingchair@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:30:15 +0300 Subject: [PATCH] Replace type() with isinstance() Thanks to @jan-cerny for the note :bow: --- ssg/controls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssg/controls.py b/ssg/controls.py index 65eca7b5b68..9471276c79b 100644 --- a/ssg/controls.py +++ b/ssg/controls.py @@ -350,7 +350,7 @@ def load(self): self.source = yaml_contents.get("source", "") self.reference_type = yaml_contents.get("reference_type", None) yaml_product = yaml_contents.get("product", None) - if type(yaml_product) is list: + if isinstance(yaml_product, list): self.product = yaml_product elif yaml_product is not None: self.product = [yaml_product]