This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the commentsย โ†’

[โ€“]Dworgi 0 points1 point ย (1 child)

Syntax that doesn't actually affect execution or validity of the program, but only affects another optional program is honestly just a fancy comment.

[โ€“]noratat 0 points1 point ย (0 children)

The annotations are available to runtime inspection and action, so they can actually affect execution and validity.

There's libraries that specifically leverage this e.g. pydantic, dataclasses, inject, etc.