Skip to content

Commit

Permalink
Lint fix: types
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Whitehouse <[email protected]>
  • Loading branch information
Jesse Whitehouse committed Sep 29, 2023
1 parent 4a7588a commit df582c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/databricks/sql/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,13 +551,13 @@ def infer_types(params: list[DbSqlParameter]):
for param in params:
_name: str = param.name
_value: Any = param.value
_type: DbSqlType
_type: Union[DbSqlType, DbsqlDynamicDecimalType, Enum, None]

if param.type:
_type = param.type
else:
# figure out what type to use
_type = type_lookup_table.get(type(_value), False)
_type = type_lookup_table.get(type(_value), None)
if not _type:
raise ValueError(
f"Could not infer parameter type from {type(param.value)} - {param.value}"
Expand Down

0 comments on commit df582c7

Please sign in to comment.