all_type Iterable, typ: type) bool[source]

Determine if an interable omnly contains a common type.

  • iterator (Iterable) – The object to check if it is all iterable

  • typ (class) – The type to check for.


True if all elements are of the type typ, or False if not.


Routine will iterate the iterator and break when an element is not of the search type typ.