palantir / conjure-python-client

Python client and JSON encoders for use with generated Conjure clients
Apache License 2.0
7 stars 20 forks source link

:bug: Failure with missing conjure_type.__code__ #144

Open stheer-pltr opened 1 year ago

stheer-pltr commented 1 year ago

Release with https://github.com/palantir/conjure-python-client/pull/142 resulted in below issue. We should check that conjure_type.code exists

File "/Users/stheer/.local/pipx/.cache/bc093e9748e7285/lib/python3.8/site-packages/conjure_python_client/_serde/decoder.py", line 128, in decode_conjure_union_type
    if 'type_of_union' in conjure_type.__code__.co_varnames:
AttributeError: type object '<...>' has no attribute '__code__'