I have Python client calls a Thrift service with some optional parameters like this:
bool postTweet(1: required Tweet tweet, 2: i32 x = 100);
If I tried to call this service from Python client without passing the optional parameter x, I get an exception:
TypeError: postTweet() takes exactly 2 arguments (1 given)
Any clues why I get this exception however it is optional parameter with a default value?