On Tue, May 25, 2021 at 5:24 PM Shreyan Avigyan <pythonshreya...@gmail.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 -- python-ideas@python.org > To unsubscribe send an email to python-ideas-le...@python.org > https://mail.python.org/mailman3/lists/python-ideas.python.org/ > Message archived at > https://mail.python.org/archives/list/python-ideas@python.org/message/IMD7WH43HFJ2IUJZG3HNYNWBQ3LRYYNM/ > Code of Conduct: http://python.org/psf/codeofconduct/ >
_______________________________________________ Python-ideas mailing list -- python-ideas@python.org To unsubscribe send an email to python-ideas-le...@python.org https://mail.python.org/mailman3/lists/python-ideas.python.org/ Message archived at https://mail.python.org/archives/list/python-ideas@python.org/message/BZI6BXBDPMM7F775YDOFYNI2LMKTCSDN/ Code of Conduct: http://python.org/psf/codeofconduct/