Skip to content

Conversation

@RonnyPfannschmidt
Copy link
Member

Hook implementation and specification options are now represented by
immutable classes (HookimplOptions, HookspecOptions) internally. This
provides stronger type guarantees and prevents accidental mutation of
option data after hook registration.

For backward compatibility with pytest's custom parsing methods, the
public parse_hookimpl_opts and parse_hookspec_opts methods continue to
return TypedDict representations, while new internal helpers handle
conversion to the immutable classes.

🤖 Generated with Claude Code

Co-Authored-By: Claude [email protected]

Hook implementation and specification options are now represented by
immutable classes (HookimplOptions, HookspecOptions) internally. This
provides stronger type guarantees and prevents accidental mutation of
option data after hook registration.

For backward compatibility with pytest's custom parsing methods, the
public parse_hookimpl_opts and parse_hookspec_opts methods continue to
return TypedDict representations, while new internal helpers handle
conversion to the immutable classes.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant