Skip to content

fix: make LoggerProtocol compatible with logging.Logger#586

Merged
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/logger-protocol/Icc8ffaff0d828c5103c13e97dd2ca7701089713f
Feb 19, 2026
Merged

fix: make LoggerProtocol compatible with logging.Logger#586
mergify[bot] merged 1 commit intomainfrom
devs/jd/fix/logger-protocol/Icc8ffaff0d828c5103c13e97dd2ca7701089713f

Conversation

@jd
Copy link
Copy Markdown
Owner

@jd jd commented Feb 19, 2026

Remove the positional-only marker (/) from LoggerProtocol.log().
logging.Logger.log() defines msg as a regular parameter, so the
positional-only constraint caused mypy to reject logging.Logger
as incompatible with the protocol.

Closes #554

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Remove the positional-only marker (/) from LoggerProtocol.log().
logging.Logger.log() defines msg as a regular parameter, so the
positional-only constraint caused mypy to reject logging.Logger
as incompatible with the protocol.

Closes #554

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Change-Id: Icc8ffaff0d828c5103c13e97dd2ca7701089713f
@jd jd marked this pull request as ready for review February 19, 2026 09:48
@mergify
Copy link
Copy Markdown
Contributor

mergify Bot commented Feb 19, 2026

Merge Queue Status

Rule: default


  • Entered queue2026-02-19 09:48 UTC
  • Checks passed · in-place
  • Merged2026-02-19 09:49 UTC · at bb33a082e99cb78df9d44dd0f75f0ce77b9ca99e

This pull request spent 29 seconds in the queue, including 5 seconds running CI.

Required conditions to merge

@mergify mergify Bot added the queued label Feb 19, 2026
@mergify mergify Bot merged commit 773f438 into main Feb 19, 2026
9 checks passed
@mergify mergify Bot deleted the devs/jd/fix/logger-protocol/Icc8ffaff0d828c5103c13e97dd2ca7701089713f branch February 19, 2026 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mypy type errors after upgrading tenacity to 9.1.3: logging.Logger rejected

1 participant