#Best way to annotate Secret type with a

1 messages · Page 1 of 1 (latest)

pallid wing
slim river
#

To answer your question, the annotation should wrap the whole type:

-Annotated[<type>, <metadata>] | None = None
+Annotated[<type> | None, <metadata>] = None
pallid wing
#

Ah, thanks for that example. Examples help more than anything.
When there are too few it can be hard to generalize.