This PR changes read_region and read_region_as_imagecoord to return a ShapeList instead of a Python list.
I guess this isn't really needed, but for consistency within the pyregion API maybe ShapeList should be used throughout?
This shouldn't break any user's code except if they did explicitly isinstance(shapes, list), which I guess is unlikely and an acceptable change for 1.2?
But I'm not sure, so @leejjoon - assigning this PR to you for review / decision.
Coverage decreased (-0.05%) to 50.66% when pulling 29872221daf3dc6ec55e25f105ec1f0bac5e0c6f on cdeil:more-shapelist into 1304632aaa0e2098daaa17d16b177061fe44b1e0 on astropy:master.
This PR changes
read_region
andread_region_as_imagecoord
to return aShapeList
instead of a Python list.I guess this isn't really needed, but for consistency within the pyregion API maybe
ShapeList
should be used throughout?This shouldn't break any user's code except if they did explicitly
isinstance(shapes, list)
, which I guess is unlikely and an acceptable change for 1.2?But I'm not sure, so @leejjoon - assigning this PR to you for review / decision.