Make Union __repr__ valid python syntax
commit6e04b5cf385bd87f7e9599223f8c970fb57b22bf
authorCooper Lees <cooper@fb.com>
Thu, 22 Sep 2022 03:10:31 +0000 (21 20:10 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 22 Sep 2022 03:10:31 +0000 (21 20:10 -0700)
treeddc04f83524e18222985e54f356cc137600c87e8
parentea9fd40ece28f7e15d19266d11b5c35abf8d7270
Make Union __repr__ valid python syntax

Summary:
- Unions are set via type.name=value
- Lets have repr() representation of thrift-python Unions produce valid syntax

Reviewed By: nanshu

Differential Revision: D39704437

fbshipit-source-id: 440a097a958f03bab3cf70d467836255118bc2a2
third-party/thrift/src/thrift/lib/python/test/structs.py
third-party/thrift/src/thrift/lib/python/types.pyx