Skip to content

Conversation

@Arbaaz123676
Copy link

What this PR does

  • Replaces a runtime assert with an explicit TypeError in interrupt handling code

Why

  • assert statements are removed when Python is run with -O / -OO
  • Explicit exceptions ensure runtime validation is always enforced

Related issue

Fixes #175

Signed-off-by: Arbaaz Ahmed <arbaazahmed419@gmail.com>
@Arbaaz123676 Arbaaz123676 force-pushed the replace-assert-with-exceptions branch from 3d62eae to f194ab0 Compare January 25, 2026 10:53
Signed-off-by: Arbaaz Ahmed <arbaazahmed419@gmail.com>
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.

failed to detect GPL license

1 participant