Add deprecation warning to types
Merge pull request #1 from hunner/add_warning

Add deprecation warning to types