mirror of
https://github.com/apache/superset.git
synced 2026-04-20 00:24:38 +00:00
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:
committed by
GitHub
parent
3aa8f32ca9
commit
1e4098a29e
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user