chore(🦾): bump python ruff 0.4.5 -> 0.8.0 (#31001)

Co-authored-by: GitHub Action <action@github.com>
Co-authored-by: Maxime Beauchemin <maximebeauchemin@gmail.com>
This commit is contained in:
github-actions[bot]
2024-11-24 17:30:48 -08:00
committed by GitHub
parent 3aa8f32ca9
commit 1e4098a29e
7 changed files with 9 additions and 6 deletions

View File

@@ -334,7 +334,9 @@ class SupersetShillelaghAdapter(Adapter):
primary_keys = [
column for column in list(self._table.primary_key) if column.primary_key
]
if len(primary_keys) == 1 and primary_keys[0].type.python_type == int:
if len(primary_keys) == 1 and isinstance(
primary_keys[0].type.python_type, type(int)
):
self._rowid = primary_keys[0].name
self.columns = {