Company
Date Published
Author
Justin Van Patten
Word count
747
Language
English
Hacker News points
None

Summary

Pulumi has enhanced the Python programming experience by introducing type annotations to its APIs and allowing the use of strongly typed data classes instead of raw dictionaries. This update improves the editing experience in IDEs such as PyCharm and VS Code and enhances type checking and consistency. Type annotations, based on PEP 484, enable tools like mypy to catch errors earlier, while the use of data classes simplifies the process of setting nested values and ensures a more Pythonic approach with snake_case arguments. These changes also allow for more strongly-typed access to nested outputs, maintaining compatibility with existing programs using dictionaries. Additional improvements include enhanced hover tooltips in IDEs and streamlined completion lists. These updates, available in the latest releases of various cloud providers, aim to significantly improve the development experience for Pulumi users.