Skip to content

Commit 110264e

Browse files
chuenchen309claude
andcommitted
fix: silence mypy attr-defined on __haystack_input__/__haystack_output__ in new tests
Matches the existing # type: ignore[attr-defined] convention already used elsewhere in this file for the same dunder-attribute access pattern. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 06040d1 commit 110264e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/core/pipeline/test_pipeline_base.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ def test_remove_component_clears_stale_senders_on_downstream_neighbor(self):
280280
pipe.remove_component("producer")
281281

282282
consumer = pipe.get_component("consumer")
283-
consumer_socket = consumer.__haystack_input__._sockets_dict["value"]
283+
consumer_socket = consumer.__haystack_input__._sockets_dict["value"] # type: ignore[attr-defined]
284284
# The surviving neighbor must not keep a dangling reference to the removed component.
285285
assert consumer_socket.senders == []
286286
# With the stale sender gone, the now-unconnected mandatory input is exposed again.
@@ -299,7 +299,7 @@ def test_remove_component_clears_stale_receivers_on_upstream_neighbor(self):
299299
pipe.remove_component("consumer")
300300

301301
producer = pipe.get_component("producer")
302-
producer_socket = producer.__haystack_output__._sockets_dict["value"]
302+
producer_socket = producer.__haystack_output__._sockets_dict["value"] # type: ignore[attr-defined]
303303
# The surviving upstream neighbor must not keep a dangling receiver reference.
304304
assert producer_socket.receivers == []
305305

0 commit comments

Comments
 (0)