Skip to content

fix: annotate test context managers with Generator for ty 0.0.85 - #48

Merged
lesnik512 merged 1 commit into
mainfrom
fix-ty-context-managers
Oct 9, 2026
Merged

lesnik512 merged 1 commit into
mainfrom
fix-ty-context-managers

Conversation

@lesnik512

Copy link
Copy Markdown
Member

Summary

ty 0.0.85 deprecates the contextlib.contextmanager / asynccontextmanager overloads for functions annotated as returning Iterator / AsyncIterator, and ty check fails on the two test helpers that do. They now return Generator / AsyncGenerator, the same fix the modern-di integrations got on 2026-10-07.

Test plan

  • ty check and ruff pass with ty 0.0.85

@lesnik512
lesnik512 merged commit 452d69c into main Oct 9, 2026
4 checks passed
@lesnik512
lesnik512 deleted the fix-ty-context-managers branch October 9, 2026 18:58
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