gyanendraknojiya@programming.dev to Programming@programming.devEnglish · 1 month agoProgramming in simple 4 stepsprogramming.devimagemessage-square64fedilinkarrow-up1941arrow-down126
arrow-up1915arrow-down1imageProgramming in simple 4 stepsprogramming.devgyanendraknojiya@programming.dev to Programming@programming.devEnglish · 1 month agomessage-square64fedilink
minus-squareStrykker@programming.devlinkfedilinkarrow-up10arrow-down2·1 month agoIt’s python, just use type hinting already and your linter will catch that. Also some winters can look at the use of food and see the type being passed in.
minus-squareEphera@lemmy.mllinkfedilinkarrow-up15·1 month agoAutocorrect got you pretty bad, there. I was very confused, why we’re suddenly talking about rationing food during winter. 🙃
minus-squareStrykker@programming.devlinkfedilinkarrow-up5·1 month agoHoly crap that’s wild, new phones autocorrect is out to get me
minus-squareFizzyOrange@programming.devlinkfedilinkarrow-up6·1 month agoYes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.
It’s python, just use type hinting already and your linter will catch that.
Also some winters can look at the use of food and see the type being passed in.
Autocorrect got you pretty bad, there.
I was very confused, why we’re suddenly talking about rationing food during winter. 🙃
Holy crap that’s wild, new phones autocorrect is out to get me
Yes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.