raise a clear TypeError when trying to register a non-class
3 files changed