Call __str__ on Text txt parameter
MatthiasJ1 opened this issue · 2 comments
MatthiasJ1 commented
Text(3, 10)
TypeError: __init__(): incompatible constructor arguments
gumyr commented
It's up to the user to pass the correct type arguments. It isn't worth the effort to attempt to fix the user's mistakes throughout the whole API.
MatthiasJ1 commented
Of course not, but Python has a language-wide builtin concept of stringification.