gumyr/build123d

Call __str__ on Text txt parameter

MatthiasJ1 opened this issue · 2 comments

Text(3, 10)
TypeError: __init__(): incompatible constructor arguments

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.

Of course not, but Python has a language-wide builtin concept of stringification.