Use isinstance to validation
Merge pull request #7 from dctrwatson/uni-type

Use isinstance to validation