pulumi/sdk/python/lib
Justin Van Patten 69d50ced27
[sdk/python] Address issues when using resource subclasses (#6890)
We were only looking at the current resource class's type/name metadata for camelCase <=> snake_case property name translations which prevented it from working correctly when using a subclass of a resource. This change addresses this by looking at metadata of the current class and any base classes.

Additionally, to help resolve forward references when getting type hints, we'd pass along the current resource class's globals, which doesn't work correctly when using a subclass of a resource. This change also addresses this, by using the globals of the current class and any base classes.
2021-04-30 10:07:23 -07:00
..
pulumi [sdk/python] Address issues when using resource subclasses (#6890) 2021-04-30 10:07:23 -07:00
test [sdk/python] Address issues when using resource subclasses (#6890) 2021-04-30 10:07:23 -07:00
test_with_mocks Fix python mock args (#6863) 2021-04-26 13:22:10 -07:00
setup.py [sdk/python] - Fix python lint errors (#6872) 2021-04-26 08:56:15 -07:00