Skip to content

fix: ty 0.0.86 invalid-property-type-override on subscribers - #105

Merged
lesnik512 merged 1 commit into
mainfrom
fix/scheduled-lint
Oct 10, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix/scheduled-lint

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Fixes #104.

ty 0.0.86 added invalid-property-type-override. TimersBroker.subscribers narrows the inherited list[SubscriberUsecase[TimerMessage]] to list[TimersSubscriber], which ty rejects because list is invariant.

The narrowing is sound in practice: the base property builds a new list on each call, and every subscriber this broker registers is a TimersSubscriber. Removing the override would move casts into testing.py (two sites) and tests/test_unit.py, so this adds a targeted ty: ignore in line with the other ignores in the package.

Locally, just lint-ci is clean and the full suite passes against Redis 8 (168 passed).

@lesnik512
lesnik512 merged commit 7c36d2f into main Oct 10, 2026
13 checks passed
@lesnik512
lesnik512 deleted the fix/scheduled-lint branch October 10, 2026 12:38
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.

Scheduled dependency check failed

1 participant