Skip to content

Conversation

@mauriciogardini
Copy link
Contributor

@mauriciogardini mauriciogardini commented Oct 21, 2025

Add the Dataclass component to the Python implementation. Used the ClassComponent, just applying some specific behavior on top of it.

steverice and others added 7 commits September 25, 2025 21:38
GitHub does not run workflows by default in forked repositories; indeed, we do not want to run the workflows in the parent repo (which include things like publishing artifacts).

Instead, we create our own version of the `CI` workflow and will manually disable all the others (so those files can still be updated without merge conflict).
Fix sets with mapJoin (alloy-framework#199). Sets were just never supported in mapJoin
even though `For` said they were.

Also fixes an issue where immediately recursive effects wouldn't run.
Add support for floating points ending in .0 in Python implementation.

The current behavior just converts them into an integer.

---------

Co-authored-by: Steve Rice <steve@steverice.org>
Add an extra line after the ClassDoc, as described by [PEP
257](https://peps.python.org/pep-0257/#multi-line-docstrings):

> Insert a blank line after all docstrings (one-line or multi-line) that
document a class – generally speaking, the class’s methods are separated
from each other by a single blank line, and the docstring needs to be
offset from the first method by a blank line.
@mauriciogardini mauriciogardini changed the title Add Dataclass component (#11) Add Dataclass component Oct 21, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Oct 21, 2025

All changed packages have been documented.

  • @alloy-js/python
Show changes

@alloy-js/python - feature ✏️

Add Dataclass component

@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 21, 2025

Open in StackBlitz

npm i https://pkg.pr.new/alloy-framework/alloy/@alloy-js/python@325

commit: de90b29

mauriciogardini and others added 6 commits October 29, 2025 11:38
* Add Dataclass component

* format

* Accounting for feedback

* Wrap childrenArray in compute()

* Account for feedback

* Fix

* Fix

* Fix

* Fix
@mauriciogardini mauriciogardini force-pushed the feature/dataclass-python branch from 44f7a7b to a502ff9 Compare October 29, 2025 21:58
@bterlson bterlson merged commit 74f5ebc into alloy-framework:main Oct 30, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants