alphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 5 months agoAlways follow 3-2-1 backup rulesh.itjust.worksimagemessage-square41fedilinkarrow-up115arrow-down11
arrow-up114arrow-down1imageAlways follow 3-2-1 backup rulesh.itjust.worksalphacyberranger@sh.itjust.works to Programmer Humor@lemmy.mlEnglish · 5 months agomessage-square41fedilink
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up1·5 months agoI believe raises is the de facto Python version of throws, but no tools seem to exist to actually handle it.
minus-squareEager Eagle@lemmy.worldlinkfedilinkEnglisharrow-up1·5 months agothat’s still a docstring, idk of linters that take docstrings into account at all. We need a semantic approach for this kind of annotation.
minus-squarebjornsno@lemm.eelinkfedilinkarrow-up0·5 months agoThat’s way harder to ask for. A docstring solution is fine so long as the linters know to pick it up.
I believe raises is the de facto Python version of
throws
, but no tools seem to exist to actually handle it.that’s still a docstring, idk of linters that take docstrings into account at all. We need a semantic approach for this kind of annotation.
That’s way harder to ask for. A docstring solution is fine so long as the linters know to pick it up.