gyanendraknojiya@programming.dev to Programming@programming.devEnglish · 9 days agoProgramming in simple 4 stepsprogramming.devimagemessage-square57fedilinkarrow-up1897arrow-down124
arrow-up1873arrow-down1imageProgramming in simple 4 stepsprogramming.devgyanendraknojiya@programming.dev to Programming@programming.devEnglish · 9 days agomessage-square57fedilink
minus-squareStrykker@programming.devlinkfedilinkarrow-up9arrow-down2·9 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-up5·9 days 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.
Yes you can use static type hinting and the static type checker (Mypy or Pyright) will catch that. Linters (Pylint) won’t.