fix: Fixed raising `TypeError` instead of `ValueError` for invalid type (#32111)
* Raised TypeError instead of ValueError for invalid types. * Updated formatting using ruff. * Retrieved few changes. * Retrieved few changes. * Updated tests accordingly.
Showing
Please register or sign in to comment