gyanendraknojiya@programming.dev to Programming@programming.devEnglish · 3 days agoProgramming in simple 4 stepsprogramming.devimagemessage-square59fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageProgramming in simple 4 stepsprogramming.devgyanendraknojiya@programming.dev to Programming@programming.devEnglish · 3 days agomessage-square59fedilink
minus-squareStrykker@programming.devlinkfedilinkarrow-up0·3 days 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-squareFizzyOrange@programming.devlinkfedilinkarrow-up0·3 days agoYes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.
minus-squareEphera@lemmy.mllinkfedilinkarrow-up0·3 days agoAutocorrect got you pretty bad, there. I was very confused, why we’re suddenly talking about rationing food during winter. 🙃
minus-squareStrykker@programming.devlinkfedilinkarrow-up0·3 days agoHoly crap that’s wild, new phones autocorrect is out to get me
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.
Yes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.
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