python: make unstructured annotations accessible in client class
commitea22f2badfa6a5ffae81f70f41f16814e3cf0955
authorJun Zhou <junz@meta.com>
Tue, 8 Nov 2022 03:51:00 +0000 (7 19:51 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Tue, 8 Nov 2022 03:51:00 +0000 (7 19:51 -0800)
treee458d851688a625cb74afc23112f81c6a49ef7fd
parent446e8afabe7f7972aab190d63d3b1537622b440d
python: make unstructured annotations accessible in client class

Summary: but explicitly marked as "DEPRECATED"

Reviewed By: nanshu

Differential Revision: D41090285

fbshipit-source-id: d4b7adf16b886619350e1ba30e8c6879d50e9380
18 files changed:
third-party/thrift/src/thrift/compiler/generate/t_mstch_python_generator.cc
third-party/thrift/src/thrift/compiler/generate/templates/python/clients/client_body.mustache
third-party/thrift/src/thrift/compiler/generate/templates/python/common/annotation.mustache [new file with mode: 0644]
third-party/thrift/src/thrift/compiler/test/fixtures/basic/gen-python/test/fixtures/basic/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/exceptions/gen-python/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/includes/gen-python/service/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/interactions/gen-python/test/fixtures/interactions/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace/gen-python/emptyns/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace/gen-python/my/namespacing/extend/test/extend/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace/gen-python/my/namespacing/test/hsmodule/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace/gen-python/my/namespacing/test/module/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package/gen-python/test/namespace_from_package/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/namespace_from_package_without_module_name/gen-python/test/namespace_from_package_without_module_name/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/no-legacy-apis/gen-python/test/fixtures/basic/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/py3/gen-python/empty/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/py3/gen-python/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/stream/gen-python/module/thrift_clients.py
third-party/thrift/src/thrift/compiler/test/fixtures/transitive-deps/gen-python/s/thrift_clients.py