You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
tighten Node.parent to Collector and resolve the resulting typing issues #8244
I asked Claude Opus 5 (via Claude Code) to check whether this issue is still live. The investigation and the text below are its work; I read it and I am posting it.
Node.parent is now annotated Collector | None (src/_pytest/nodes.py:152), and Collector.from_parent takes parent: Collector (nodes.py:219) — the tightening this issue asked for. The change landed as part of "Replace string nodeids with a structured NodeId internally" (431f3e1), which is why it was never linked here.
Activity
RonnyPfannschmidt commentedon Sep 13, 2026
I asked Claude Opus 5 (via Claude Code) to check whether this issue is still live. The investigation and the text below are its work; I read it and I am posting it.
Resolved by #14758.
Node.parentis now annotatedCollector | None(src/_pytest/nodes.py:152), andCollector.from_parenttakesparent: Collector(nodes.py:219) — the tightening this issue asked for. The change landed as part of "Replace string nodeids with a structured NodeId internally" (431f3e1), which is why it was never linked here.Closing as resolved.