@[email protected] to [email protected]English • 1 day agoProgramming in simple 4 stepsprogramming.devimagemessage-square53fedilinkarrow-up1778arrow-down120
arrow-up1758arrow-down1imageProgramming in simple 4 stepsprogramming.dev@[email protected] to [email protected]English • 1 day agomessage-square53fedilink
minus-square@[email protected]linkfedilink7•1 day 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-squareEpheralinkfedilink14•1 day agoAutocorrect got you pretty bad, there. I was very confused, why we’re suddenly talking about rationing food during winter. 🙃
minus-square@[email protected]linkfedilink4•1 day agoHoly crap that’s wild, new phones autocorrect is out to get me
minus-square@[email protected]linkfedilink6•1 day 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.