Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _pandas_to_tableau_type(typ: str) -> pantab_types._ColumnType:
try:
return pantab_types._column_types[typ]
except KeyError:
raise TypeError("Conversion of '{}' dtypes not supported!".format(typ))