HiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-213 days agoWhy make it complicated?lemmy.mlimagemessage-square107fedilinkarrow-up11arrow-down10file-textcross-posted to: [email protected]
arrow-up11arrow-down1imageWhy make it complicated?lemmy.mlHiddenLayer555@lemmy.ml to Programmer Humor@programming.devEnglish · edit-213 days agomessage-square107fedilinkfile-textcross-posted to: [email protected]
minus-square_stranger_@lemmy.worldlinkfedilinkarrow-up0·11 days 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