python-validators / validators

Python Data Validation for Humans™.
MIT License
977 stars 155 forks source link

Validate non-string UUID types #174

Closed Letsch22 closed 4 years ago

Letsch22 commented 4 years ago

Right now, passing a type to uuid that cannot be pattern matched results in TypeError: expected string or bytes-like object.

This fixes that by catching any potential TypeError and returning False in those cases.