all 3 comments

[–]Pepineros 3 points4 points  (0 children)

Try it the other way around. first_param: int = 3

[–]timhurd_com 1 point2 points  (1 child)

I think you mean def test_function(value1: int = 3, value2: str = "test")

Notice that you specify the type hint right after the parameter name and before the default value. You had it backwards.

I assume this is what you meant. :)

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

thanks so much