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
Commit 7cd892a
Browse filesBrowse the repository at this point in the historyBrowse files
Add opt-in FunctionDefinition collection tree node (#3926)
Introduce the ``collect_function_definition`` ini option to promote the
internal ``FunctionDefinition`` from a transient parametrization helper to
a real collector node in the collection tree.
The option is tri-state:
- ``hidden`` (default): unchanged flat layout; the definition drives
parametrization and is kept out of the tree.
- ``pedantic``: insert the definition node between the Module/Class and its
test functions; function-level markers are scoped to the definition and
each invocation owns only its callspec markers.
- ``messy``: migration stopgap -- insert the node but transfer the
function-level markers back onto each invocation to preserve the legacy
marker layout for code not yet prepared for the new scope; emits a header
warning.
FunctionDefinition becomes a PyCollector (no longer a Function/Item), so it
is collected rather than run. Invocation node ids stay flat and identical
across all modes, so selection, caching and reporting are unaffected. obj
and instance resolution and getmodpath skip an interposed definition node.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments