diff --git a/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx b/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx index 369642f4142..0ad904731fa 100644 --- a/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx +++ b/superset-frontend/src/explore/components/controls/CollectionControl/index.tsx @@ -188,9 +188,7 @@ function CollectionControl({ // Two items can collide when keyAccessor returns falsy and the index // fallback is used — breaking dnd-kit reordering and React reconciliation. // Assign a stable nanoid per item ref when no key is available. - const generatedIdsRef = useRef>( - new WeakMap(), - ); + const generatedIdsRef = useRef>(new WeakMap()); const itemIds = useMemo( () => value.map(item => { diff --git a/tests/unit_tests/sql/rls_splice_unit_tests.py b/tests/unit_tests/sql/rls_splice_unit_tests.py index aa1e19456ec..51f3a23afff 100644 --- a/tests/unit_tests/sql/rls_splice_unit_tests.py +++ b/tests/unit_tests/sql/rls_splice_unit_tests.py @@ -15,6 +15,7 @@ # specific language governing permissions and limitations # under the License. +import pytest import sqlglot from sqlglot import Dialect, exp @@ -48,7 +49,7 @@ def _token_by_text( def test_split_source_returns_none_result_when_tokenize_fails( - monkeypatch: object, + monkeypatch: pytest.MonkeyPatch, ) -> None: class _BrokenDialect: @staticmethod @@ -176,7 +177,7 @@ def test_scan_join_clause_stops_at_outer_closing_paren() -> None: def test_splices_for_scope_handles_empty_join_splice_result( - monkeypatch: object, + monkeypatch: pytest.MonkeyPatch, ) -> None: class _Scope: sources = {"x": object()} @@ -205,7 +206,9 @@ def test_splices_for_scope_handles_empty_join_splice_result( ) -def test_splices_for_scope_combines_join_and_from_splices(monkeypatch: object) -> None: +def test_splices_for_scope_combines_join_and_from_splices( + monkeypatch: pytest.MonkeyPatch, +) -> None: class _Scope: sources = {"f": object(), "j": object()} @@ -239,7 +242,9 @@ def test_splices_for_scope_combines_join_and_from_splices(monkeypatch: object) - ) == [(50, " ON j.id = 2"), (20, " WHERE f.id = 1")] -def test_splices_for_scope_join_then_next_source(monkeypatch: object) -> None: +def test_splices_for_scope_join_then_next_source( + monkeypatch: pytest.MonkeyPatch, +) -> None: class _Scope: sources = {"j": object(), "f": object()}