# Runtime type checking using parameterized types

**URL:** <https://discuss.python.org/t/runtime-type-checking-using-parameterized-types/70173>\
**Category:** Ideas\
**Created:** [November 4, 2024, 9:23pm UTC](https://discuss.python.org/t/runtime-type-checking-using-parameterized-types/70173 "2024-11-04T21:23:00Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![zhangyx](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/zhangyx/32/23808_2.png) [@zhangyx](https://discuss.python.org/u/zhangyx)\
**Post date:** [November 5, 2024, 1:40am UTC](https://discuss.python.org/t/runtime-type-checking-using-parameterized-types/70173/13 "2024-11-05T01:40:02Z")

</div>

Thanks, looking into it.

> [@Liz](#):
>
> You also shouldn’t use assert for that.

I did not make it clear in the original example. But my outer wrapper (`JsonProtocol. __iter__ ()`) will catch decode exceptions and skip bad data points - exception control flow is intentionally used to indicate “no data returned”.

---

_[View the full topic](https://discuss.python.org/t/runtime-type-checking-using-parameterized-types/70173)._
