HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agoWhy make it complicated?lemmy.mlimagemessage-square117fedilinkarrow-up1365arrow-down140file-textcross-posted to: programmerhumor@lemmy.ml
arrow-up1325arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-22 days agomessage-square117fedilinkfile-textcross-posted to: programmerhumor@lemmy.ml
minus-square_stranger_@lemmy.worldlinkfedilinkarrow-up1·5 hours agodataclasses do this for you at the class level. They enforce type annotations at instantiation. https://docs.python.org/3/library/dataclasses.html
dataclasses do this for you at the class level. They enforce type annotations at instantiation.
https://docs.python.org/3/library/dataclasses.html