Skip to content

Commit

Permalink
Replace type() with isinstance()
Browse files Browse the repository at this point in the history
Thanks to @jan-cerny for the note 🙇
  • Loading branch information
teacup-on-rockingchair committed Oct 9, 2024
1 parent ab875b0 commit 83eaa21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ssg/controls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 83eaa21

Please sign in to comment.