Skip to content

test: report a bare docs/adr/NNNN citation as unresolved - #79

Merged
lesnik512 merged 3 commits into
mainfrom
test/adr-short-citations
Sep 19, 2026
Merged

lesnik512 merged 3 commits into
mainfrom
test/adr-short-citations

Conversation

@lesnik512

@lesnik512 lesnik512 commented Sep 19, 2026 •

Copy link
Copy Markdown
Member

tests/test_adr_citations.py only matched docs/adr/NNNN-<slug>.md, so a citation written as a bare docs/adr/NNNN was invisible to it. The pattern now also captures the bare form, which names no file and so falls out of the existing is_file() check as unresolved. Same change as modern-python/httpware#129; the file stays byte-identical across the org.

Also: the lint job was red on main

CI runs uv lock --upgrade, and ty 0.0.82 (2026-09-17) started reporting two classes as abstract:

  • TimersParamsStorage: DefaultLoggerStorage inherits register_subscriber from the LoggerParamsStorage protocol without implementing it. At runtime the protocol's ... body is inherited, so nothing broke. Implemented the way faststream's own RedisParamsStorage does it: it records the longest channel name, which get_logger already reads as _max_channel_name for the column width.
  • TimersSubscriber: SubscriberUsecase.__aiter__ is abstract and was never overridden. It now raises NotImplementedError like get_one, as a plain method so async for reaches the message instead of Python's "coroutine has no __anext__" error.

Tests first for both (the width test failed on the fixed width, the iteration test failed with the TypeError), then the implementations. Checked with both the locked ty 0.0.81 and 0.0.82.

…bstract

TimersParamsStorage inherits register_subscriber from the LoggerParamsStorage
protocol without implementing it; implement it the way faststream's own
storages do, widening the channel column. TimersSubscriber lacked __aiter__;
it now raises NotImplementedError like get_one.
@lesnik512
lesnik512 merged commit a0a8eda into main Sep 19, 2026
8 checks passed
@lesnik512
lesnik512 deleted the test/adr-short-citations branch September 19, 2026 10:43
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