Skip to content

Commit

Permalink
Specify instance for isinstance
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesParrott committed Dec 5, 2023
1 parent 1f22991 commit 7d0a3b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sDNA_GH/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ def update_tools(self, nick_name = None):
self.tools_default_opts.update(tool.default_tool_opts)
self.not_shared.update(tool.not_shared)

if isinstance(tools.sDNA_ToolWrapper):
if isinstance(tool, tools.sDNA_ToolWrapper):
sDNA = tools.sDNA_key(self.opts) # the submodule, tools.py
self.do_not_remove += tool.default_named_tuples[sDNA]._fields

Expand Down

0 comments on commit 7d0a3b2

Please sign in to comment.