Repository navigation
Commit 4c24acf
fix(typing): pass str dataset ids in tree table guest RLS rules
The full-tree mypy run flags tree_table_guest_tests.py:704 and :841:
GuestTokenRlsRule.dataset is typed Optional[str], but the tests passed
self.table.id (int). Scoped mypy runs resolve SqlaTable.id as Any
because superset_core is follow_imports=skip, so the per-PR check did
not catch it. Runtime compares str(rule["dataset"]) to str(dataset.id),
so behaviour is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 9969fe9 commit 4c24acf
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
701 | 701 | | |
702 | 702 | | |
703 | 703 | | |
704 | | - | |
| 704 | + | |
705 | 705 | | |
706 | 706 | | |
707 | 707 | | |
| |||
838 | 838 | | |
839 | 839 | | |
840 | 840 | | |
841 | | - | |
| 841 | + | |
842 | 842 | | |
843 | 843 | | |
844 | 844 | | |
| |||
0 commit comments