Python define a class (`dataclass` or Pydantic `BaseModel` or `TypedDict` or whatever) whose fields are defined by a collection of strings
Suppose I have a collection of strings defined as a StrEnum
:
Suppose I have a collection of strings defined as a StrEnum
: