Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
calpt committed Oct 11, 2023
1 parent 9cdf62d commit 4952105
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/adapters/methods/adapter_layer_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ def check_composition_valid(self, parent: AdapterCompositionBlock, child: Adapte
ValueError: If the composition is invalid.
"""
# Break if setup is too deep
if type(parent) == Stack and lvl >= 1:
if isinstance(parent, Stack) and lvl >= 1:
raise ValueError(
"Specified adapter setup is too deep. Cannot have {} at level {}".format(child.__class__.__name__, lvl)
)
Expand Down

0 comments on commit 4952105

Please sign in to comment.