bpo-46480: rephrase typing.assert_type docs (GH-32069)
The goal here is to reduce potential confusion between `assert_type(val, type)` and `assert isinstance(val, typ)`. The former is meant to ask a type checker to confirm a fact, the latter is meant to tell a type checker a fact. The behaviour of the latter more closely resembles what I'd expect from the prior phrasing of "assert [something] to the type checker".
S
Shantanu committed
3354245daf89ca2c760c2c3e5b69a571f25073ed
Parent: 366c546
Committed by GitHub <noreply@github.com>
on 3/24/2022, 2:15:06 AM