It’s nice to see typing becoming more popular in Python! It appears that is how your DI framework works with regard to eliminating the if-statement. I use MyPy for all my “real” code. 👍

Security-minded professional software engineer from Virginia. Passionate about software, testing, and design patterns.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store