Skip to content

Commit

Permalink
Make mypy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 25, 2024
1 parent 5d201fb commit e22b386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions singer_sdk/connectors/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,8 @@ def _get_type_from_schema(self, schema: dict) -> sa.types.TypeEngine | None:
handler = self._type_mapping[non_null_types[0]]
return self._invoke_handler(handler, schema)

elif handler := self._type_mapping.get(schema_type):
return self._invoke_handler(handler, schema)
elif type_handler := self._type_mapping.get(schema_type):
return self._invoke_handler(type_handler, schema)

return None

Expand Down

0 comments on commit e22b386

Please sign in to comment.