It'd be nice to have a doc string here about what is throwing the TypeError.