diff --git a/thrift/annotation/python.thrift b/thrift/annotation/python.thrift index 05209b8d136ee..3de4736c6160e 100644 --- a/thrift/annotation/python.thrift +++ b/thrift/annotation/python.thrift @@ -95,3 +95,7 @@ struct Adapter { struct UseCAPI { 1: bool serialize = false; } + +/// Enables C++ Adapter for thrift-py3. It treats C++ Adapter on typedef as cpp.Type. +@scope.Typedef +struct Py3EnableCppAdapter {}