Skip to content

Conversation

@emmanuel-ferdman
Copy link
Contributor

@emmanuel-ferdman emmanuel-ferdman commented Jan 26, 2026

PR Summary

The add_extension and remove_extension functions only accepted callables with exactly one parameter, but custom assertions can have additional parameters like def all_match(self, predicate). Changed to Callable[..., AssertionBuilder[Any]] to match the runtime behavior.

Fixes #15326 .

@github-actions

This comment has been minimized.

@emmanuel-ferdman emmanuel-ferdman changed the title [logging] Fix Formatter.converter assignment in subclasses [assertpy] Accept extensions with additional parameters Jan 26, 2026
@github-actions
Copy link
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

Copy link
Collaborator

@srittau srittau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@srittau srittau merged commit 7f3ec00 into python:main Jan 27, 2026
48 checks passed
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.

Wrong parameter types in the stubs for some assertpy functions

2 participants