On Tue, May 25, 2021 at 5:24 PM Shreyan Avigyan email@example.com wrote:
Reply to Chris:
Wait. Deployment? Before deploying we *run the code* at least once and then we get the errors. And I'm not sure but type checking is ok but sometimes enforcing is a better option. Why? Mypy or typecheckers have to be run manually
Check out pycharm with the mypy plugin. It will flag up typing.Final violations before you even finish typing the line containing the error.
You can see the plugin in action in this short gif: https://imgshare.io/image/mypy.p8Gy4d
and they are also not part of the stdlib. Enforcing can help us catch it during editing because we don't deploy before running it at least once. So we're writing our own code and we don't run it before deploying? Mypy will catch at step 2 but enforcing can help as catch at step 1. _______________________________________________ Python-ideas mailing list -- firstname.lastname@example.org To unsubscribe send an email to email@example.com https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://firstname.lastname@example.org/message/IMD7WH... Code of Conduct: http://python.org/psf/codeofconduct/