We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 313111e + 294dc5f commit f49d589Copy full SHA for f49d589
1 file changed
adapter/adapter.py
@@ -47,7 +47,7 @@ def get_attribute(obj, attrs):
47
try:
48
if isinstance(obj, collections.Mapping):
49
obj = obj[attr]
50
- elif isinstance(obj, (list, tuple)):
+ elif isinstance(obj, collections.Iterable):
51
obj = obj[int(attr)]
52
else:
53
obj = getattr(obj, attr)
0 commit comments