HomogeneousList

class astropy.utils.collections.HomogeneousList(types, values=[]) [edit on github][source]

Bases: list

A subclass of list that contains only elements of a given type or types. If an item that is not of the specified type is added to the list, a TypeError is raised.

Methods Summary

append(x)
extend(x)
insert(i, x)

Methods Documentation

append(x) [edit on github][source]
extend(x) [edit on github][source]
insert(i, x) [edit on github][source]

Page Contents