Skip to content

Commit 0965765

Browse files
committed
ENH: update type checks for surfaces and positions to use Iterable
1 parent 05f2c4f commit 0965765

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rocketpy/rocket/rocket.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,8 +1132,8 @@ def add_surfaces(self, surfaces, positions):
11321132
-------
11331133
None
11341134
"""
1135-
if isinstance(surfaces, list):
1136-
if isinstance(positions, list):
1135+
if isinstance(surfaces, Iterable):
1136+
if isinstance(positions, Iterable):
11371137
if len(surfaces) != len(positions):
11381138
raise ValueError(
11391139
"The number of surfaces and positions must be the same."

0 commit comments

Comments
 (0)