Classes
Methods
__rep__
when you print a list of objects, Python uses the repr method rather than str for the elements. To get your desired output, you need to either:
- Add a repr method to your Card class
Types
TypeDicts
are just to validate a dictionary has the relevant fields
str Enum
can be set to strings. Can generally work with them as a string Literal of one of the enum strings.
Pydantic
rsources: