Skip to content

Replace runtime assert with explicit TypeError in interrupt handling#4702

Open
Arbaaz123676 wants to merge 2 commits intoaboutcode-org:developfrom
Arbaaz123676:replace-assert-with-exceptions
Open

Replace runtime assert with explicit TypeError in interrupt handling#4702
Arbaaz123676 wants to merge 2 commits intoaboutcode-org:developfrom
Arbaaz123676:replace-assert-with-exceptions

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

@Arbaaz123676 Arbaaz123676 force-pushed the replace-assert-with-exceptions branch from 3d62eae to f194ab0 Compare January 25, 2026 10:53
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