Skip to content

Import LoggingContext from where Synapse now defines it - #308

Merged
devonh merged 1 commit into
mainfrom
fix-loggingcontext-import
Oct 13, 2026
Merged

devonh merged 1 commit into
mainfrom
fix-loggingcontext-import

Conversation

@devonh

@devonh devonh commented Oct 9, 2026 •

Copy link
Copy Markdown
Member

This fixes CI failures I am now seeing in the repo.

Synapse 1.162.0 moved LoggingContext to synapse.synapse_rust.logcontext. (element-hq/synapse#19979)
synapse.logging.context no longer explicitly re-exports it, which strict mypy rejects.

The alternative to this PR is to re-export LoggingContext in synapse from synapse.logging.context.
But I think this is a minor change here and is only used in tests so nobody using the actual module will be affected.

Synapse 1.162.0 moved LoggingContext to synapse.synapse_rust.logcontext;
synapse.logging.context no longer explicitly re-exports it, which strict
mypy rejects.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LpxhUvvbRYpQSxhidPnnP7
@devonh
devonh merged commit 0082b46 into main Oct 13, 2026
14 checks passed
@devonh
devonh deleted the fix-loggingcontext-import branch October 13, 2026 15:50
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.

2 participants