pulumi/tests/testdata/codegen/external-enum/python/pulumi_example
Will Jones 8e31490513
Generate `__init__.py` files for enum-only modules (#16229)
The current Python code generator does not emit `__init__.py` files for
modules that only contain enumerations. This is problematic in cases
such as https://github.com/pulumi/pulumi/issues/16221, whereby
`pulumi-command` wishes to define an enumeration to be shared across
modules, in a module with no other types or resources. In such cases, an
SDK is generated that does not type check, since the enumeration types
are not exported appropriately. This commit addresses this by generating
`__init__.py` files in these cases as expected.

Fixes #16221
2024-05-20 14:16:49 +00:00
..
local Generate `__init__.py` files for enum-only modules (#16229) 2024-05-20 14:16:49 +00:00
README.md Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
__init__.py Generate `__init__.py` files for enum-only modules (#16229) 2024-05-20 14:16:49 +00:00
_utilities.py Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
component.py Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
provider.py Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
pulumi-plugin.json Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00
py.typed Move codegen testdata (#15549) 2024-03-06 20:36:50 +00:00

README.md