SIGN IN SIGN UP
python / cpython UNCLAIMED

The Python programming language

0 0 0 Python

Improve assert_type phrasing (#104081)

I'd like to make the fact that this does nothing at runtime
really obvious, since I suspect this is unintuitive for users who are
unfamiliar with static type checking.

I thought of this because of
https://discuss.python.org/t/add-arg-check-type-to-types/26384
wherein I'm skeptical that the user really did want `assert_type`.
S
Shantanu committed
82ba6ce303d04a7b21034e38d220e23ca9f1dc0a
Parent: f0ad456
Committed by GitHub <noreply@github.com> on 5/2/2023, 6:05:25 AM