Skip to content

Conversation

@jelmer
Copy link
Member

@jelmer jelmer commented Jan 27, 2026

No description provided.

Remove testtools.assertions, testtools.compat, testtools.run,
testtools.matchers.*, testtools.monkey, and testtools.runtest
from mypy strict override list as they now have full type annotations.
Explicitly capture the return value from addBoth() when adding
validation callbacks to Deferred objects. While addBoth() modifies
the Deferred in place and returns it, explicitly using the return
value ensures the properly chained Deferred is returned from
_run_setup and _run_teardown.

This fixes a test failure specific to Python 3.12 where the validation
callback chain wasn't being properly handled.
@jelmer jelmer closed this Jan 27, 2026
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