python: any registry (4/n) allow primitive types (int & float)
commit5662b68b97a0c2a813f8a2f894c8e5889a51585b
authorJun Zhou <junz@meta.com>
Sat, 18 Feb 2023 18:18:37 +0000 (18 10:18 -0800)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Sat, 18 Feb 2023 18:18:37 +0000 (18 10:18 -0800)
tree463a0f7505b79ffebf67fa14ca216bea97bf90a1
parentaed60573f2cfc6e112d7524d3aefdb28859ac5f8
python: any registry (4/n) allow primitive types (int & float)

Summary: using the primitive serializer in previous diff, we could now support primitive types in any registry

Reviewed By: nanshu

Differential Revision:
D43327100

Privacy Context Container: L1124964

fbshipit-source-id: f22adaf4bb0449429ea444c0c496325770d13842
third-party/thrift/src/thrift/lib/python/any/any_registry.py
third-party/thrift/src/thrift/lib/python/any/serializer.pyi
third-party/thrift/src/thrift/lib/python/any/serializer.pyx
third-party/thrift/src/thrift/lib/python/any/test/any_registry.py