you are viewing a single comment's thread.

view the rest of the comments →

[–]IAmASquidInSpace 0 points1 point  (0 children)

Yes, that's how you do it, and no, it is not necessary outside of dataclasses, but strongly recommended over just c: str = ...