Skip to content

Commit

Permalink
fix: quiet linter warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nigelm committed Apr 1, 2024
1 parent 5e8ecb2 commit 6c3f5ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion broadworks_ocip/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def etree_sub_element_(
pass
elif sub_element.is_table:
# any table should be a list of namedtuple elements
if type(value) is list and len(value) > 0:
if isinstance(value, list) and len(value) > 0:
elem = etree.SubElement(
element,
sub_element.xmlname,
Expand Down

0 comments on commit 6c3f5ce

Please sign in to comment.