Skip to content

Type context manager exceptions explicitly - #3604

Merged
adamtheturtle merged 1 commit into
mainfrom
type-context-manager-exception
Sep 10, 2026
Merged

Type context manager exceptions explicitly#3604
adamtheturtle merged 1 commit into
mainfrom
type-context-manager-exception

Conversation

@adamtheturtle

Copy link
Copy Markdown
Member

Summary

  • replace the variadic object exception tuple with the standard __exit__ parameters
  • type the traceback as TracebackType
  • remove the workaround that existed only to consume the variadic tuple

Verification

  • repository-wide pre-commit and pre-push hooks
  • focused context-manager and decorator behavior tests

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