Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
0.15.0
-
None
-
None
Description
// a.thrift namespace py a struct Sample{ //... }
// b.thrift
namespace py b
typedef a.Sample AliasSample
// c.thrift namespace py c include "b.thrift" struct Xxx { 1: required b.AliasSample data }
generate python code, b.AliasSample is replaced with a.Sample(Unresolved reference), but c.py doesn`t include a.ttypes
// c.thrift from thrift.Thrift import TType, TMessageType, TFrozenDict, TException, TApplicationException from thrift.protocol.TProtocol import TProtocolException import sys import b.ttypes from thrift.transport import TTransport class Xxx(object): //... def read(self, iprot): if fid == 1: if ftype == TType.STRUCT: self.data = a.ttypes.Sample() //... Xxx.thrift_spec = ( None, (1, TType.STRUCT, 'data', [a.ttypes.Sample, None], None, ), ) //...
Attachments
Issue Links
- links to