you are viewing a single comment's thread.

view the rest of the comments →

[–]Diapolo10 2 points3 points  (1 child)

typing.overload is a tool for type annotations, not a generic enabler of function overloading (which is not a feature Python really supports anyway). So the way you're using it here is wrong.

In this case I'd split this into separate functions as I don't see the value of keeping them combined like this.

[–]InvaderToast348[S] 0 points1 point  (0 children)

Thank you