pyvider-cty 2025-03-15
Significant enhancement of collection types (List, Map
11 files · 1,015+ · 921-

Collection Type Improvements

3 files changed
  • list.py `CtyList`: Migrated from `@dataclass` to `@define(frozen=True, slots=True)` (attrs), expanded val...
  • map.py `CtyMap`: Major expansion (324 lines of changes) with improved key/value validation and type chec...
  • set.py `CtySet`: Expanded from ~84 to ~188 lines with enhanced validation logic
  • CtyList: Migrated from @dataclass to @define(frozen=True, slots=True) (attrs), expanded validation with better error messages, grew from ~95 to ~191 lines decouple internal
    1 file
    • list.py
  • CtyMap: Major expansion (324 lines of changes) with improved key/value validation and type checking decouple internal
    1 file
    • map.py
  • CtySet: Expanded from ~84 to ~188 lines with enhanced validation logic decouple internal
    1 file
    • set.py
  • All collection types now use pyvider.cty.logger instead of pyvider.rpcplugin.logger decouple internal
    3 files
    • list.py
    • map.py
    • set.py

Test Updates

2 files changed
  • test_collections_set.py See points for details
  • test_cty_structural_dynamic.py See points for details
  • test_collections_set.py: Reworked test assertions to match new validation error formats (221 lines changed) qualify internal
    1 file
    • test_collections_set.py
  • Added tests/dynamic/pile/test_cty_structural_dynamic.py (126 lines) qualify internal
    1 file
    • test_cty_structural_dynamic.py

Go-cty Documentation Tooling

3 files changed
  • test.yaml.tmpl See points for details
  • make-docs.py See points for details
  • test.sh See points for details
  • Added tests/dynamic/pile/godocs/make-docs.py: Script to generate documentation from Go sources qualify internal
    1 file
    • make-docs.py
  • Added tests/dynamic/pile/godocs/test.sh and test.yaml.tmpl for doc generation testing qualify internal
    2 files
    • test.sh
    • test.yaml.tmpl
  • Added example template for Go documentation generation instantiate internal
    3 files
    • test.yaml.tmpl
    • make-docs.py
    • test.sh

Documentation Cleanup

2 files changed
  • 20250310-1824-pyvider-cty-documentation.md See points for details
  • 20250310-1826-pyvider-cty-documentation-02.md See points for details
  • Removed docs/20250310-1824-pyvider-cty-documentation.md (529 lines) specify internal
    1 file
    • 20250310-1824-pyvider-cty-documentation.md
  • Removed docs/20250310-1826-pyvider-cty-documentation-02.md (91 lines) specify internal
    1 file
    • 20250310-1826-pyvider-cty-documentation-02.md