Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
courtneyholcomb committed Oct 25, 2023
1 parent 929962a commit 8daa65c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions dbt_semantic_interfaces/protocols/saved_query.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from abc import abstractmethod
from typing import List, Optional, Protocol, Sequence
from typing import Optional, Protocol, Sequence

from dbt_semantic_interfaces.protocols.export import Export
from dbt_semantic_interfaces.protocols.metadata import Metadata
Expand Down Expand Up @@ -48,6 +48,6 @@ def label(self) -> Optional[str]:

@property
@abstractmethod
def exports(self) -> Optional[List[Export]]:
def exports(self) -> Optional[Sequence[Export]]:
"""Exports that can run using this saved query."""
pass
2 changes: 1 addition & 1 deletion tests/parsing/test_saved_query_parsing.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def test_saved_query_exports() -> None:

assert len(build_result.semantic_manifest.saved_queries) == 1
saved_query = build_result.semantic_manifest.saved_queries[0]
assert len(saved_query.exports) == 2
assert saved_query.exports and len(saved_query.exports) == 2
names_to_exports = {export.name: export for export in saved_query.exports}
assert set(names_to_exports.keys()) == {"test_exports1", "test_exports2"}

Expand Down

0 comments on commit 8daa65c

Please sign in to comment.