Skip to content

Commit 57425f2

Browse files
committed
Implement review feedback
1 parent b3b6c53 commit 57425f2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

astroid/inference_tip.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ def inner(
5555
# with slightly different contexts while still passing the simple
5656
# test cases included with this commit.
5757
_CURRENTLY_INFERRING.add(partial_cache_key)
58-
_cache[func, node, context] = list(func(node, context, **kwargs))
58+
result = _cache[func, node, context] = list(func(node, context, **kwargs))
5959
# Remove recursion guard.
6060
_CURRENTLY_INFERRING.remove(partial_cache_key)
6161

62-
yield from _cache[func, node, context]
62+
yield from result
6363

6464
return inner
6565

astroid/typing.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __call__(
8585
context: InferenceContext | None = None,
8686
**kwargs: Any,
8787
) -> Generator[InferenceResult, None, None]:
88-
...
88+
... # pragma: no cover
8989

9090

9191
class TransformFn(Protocol, Generic[_SuccessfulInferenceResultT]):
@@ -94,4 +94,4 @@ def __call__(
9494
node: _SuccessfulInferenceResultT,
9595
infer_function: InferFn[_SuccessfulInferenceResultT] = ...,
9696
) -> _SuccessfulInferenceResultT | None:
97-
...
97+
... # pragma: no cover

0 commit comments

Comments
 (0)