--

Thank you for your comment. You are right that using assert statements for type checking is not safe in production code. This article is meant to be a proof of concept rather than a source for production-ready code. But to not spread un-clean code, I've updated the code. I appreciate your feedback and hope you enjoyed reading the article.

--

--

Johannes Schmidt
Johannes Schmidt

Written by Johannes Schmidt

Software & Data Engineer at Datamesh GmbH. Sharing knowledge and code around software (cloud) development, data engineering & data science!

Responses (1)