Skip to content

refactor: Add LogExpectation TypedDict for better type safety#15

Merged
rustyconover merged 2 commits into
mainfrom
refactor/testing-type-annotations
Jan 5, 2026
Merged

refactor: Add LogExpectation TypedDict for better type safety#15
rustyconover merged 2 commits into
mainfrom
refactor/testing-type-annotations

Conversation

@rustyconover

Copy link
Copy Markdown
Contributor

Summary

  • Adds LogExpectation TypedDict for log assertions in assert_function_logs()
  • Replaces dict[str, Any] with typed structure
  • Provides better IDE support and documentation
  • All fields are optional, supporting flexible matching patterns

Test plan

  • All existing tests pass
  • Type checks pass

Closes vgi-python-set

🤖 Generated with Claude Code

rustyconover and others added 2 commits January 5, 2026 12:09
Introduces LogExpectation TypedDict to replace dict[str, Any] for log
expectations in assert_function_logs(). Provides better IDE support,
documentation, and type checking for log assertion patterns.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@rustyconover rustyconover merged commit 8206d13 into main Jan 5, 2026
0 of 16 checks passed
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