Why Nostr? What is Njump?
2025-03-15 16:36:02

Valentino Gagliardi on Nostr: Say I have a TypedDict in Python like the following: class Things(TypedDict): thing: ...

Say I have a TypedDict in Python like the following:

class Things(TypedDict):
thing: Literal["thing-role"]
another_thing: Literal["another-role"]

How can I extract all the values so that they can be passed as a type for a function parameter? Is get_type_hints my only resort?
Author Public Key
npub1pdafcy2j6z8c7xdskfj9m85rp7zejlccs8cwgcx4ny4ylqhglj4qhmqe2p