From 77964800624234db7ed50962d31dbefe26b63ab8 Mon Sep 17 00:00:00 2001 From: goodboy Date: Sat, 29 Aug 2026 21:46:38 -0400 Subject: [PATCH] Widen `accept_addr` in the UDS example Match `Actor.accept_addr`'s declared `tuple[str, int|str]` contract instead of narrowing its second item to the UDS-specific string path. Review: https://github.com/goodboy/tractor/pull/512#discussion_r3888153533 (this patch was generated in some part by `opencode` using `gpt-5.6-sol` (`openai`)) --- examples/uds_transport_actor_tree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/uds_transport_actor_tree.py b/examples/uds_transport_actor_tree.py index dfcfd746..68b780ac 100644 --- a/examples/uds_transport_actor_tree.py +++ b/examples/uds_transport_actor_tree.py @@ -22,7 +22,7 @@ async def report_addr() -> str: ''' actor: tractor.Actor = tractor.current_actor() - addr: tuple[str, str] = actor.accept_addr + addr: tuple[str, int|str] = actor.accept_addr pid: int = os.getpid() return f'{actor.name}@{addr} pid={pid}'