Skip to content

Commit 32dd9e6

Browse files
committed
Fix type hints
1 parent c81bb0e commit 32dd9e6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/databricks/labs/pytester/fixtures/unwrap.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ def __str__(self):
6565
_GENERATORS = set[str]()
6666

6767

68-
def call_stateful(some: Callable[..., T], **kwargs) -> tuple[CallContext, T]:
68+
def call_stateful(some: Callable[..., Generator[Callable[..., T]]], **kwargs) -> tuple[CallContext, T]:
6969
# pylint: disable=too-complex
7070
ctx = CallContext()
7171
drains = []

tests/unit/fixtures/test_catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def test_make_catalog() -> None:
110110

111111

112112
def test_make_catalog_creates_catalog_with_name() -> None:
113-
ctx, info = call_stateful(make_catalog, name="test")
113+
ctx, _ = call_stateful(make_catalog, name="test")
114114
ctx['ws'].catalogs.create.assert_called_once_with(name="test", properties=ANY)
115115

116116

0 commit comments

Comments
 (0)