Skip to content

[wptrunner] Use more dataclass functionality for Product#57503

Open
gsnedders wants to merge 1 commit intoweb-platform-tests:masterfrom
gsnedders:wptrunner_product_dataclass
Open

[wptrunner] Use more dataclass functionality for Product#57503
gsnedders wants to merge 1 commit intoweb-platform-tests:masterfrom
gsnedders:wptrunner_product_dataclass

Conversation

@gsnedders
Copy link
Member

By moving the dataclass to a base class we can simply call the dataclass generated __init__ on the superclass, rather than having to do it all manually.

All of the logic is now within dataclass; all the Product subclass does is maintain support for the deprecated constructor, and provides the from_product_name method.

By moving the dataclass to a base class we can simply call the
dataclass generated __init__ on the superclass, rather than having to
do it all manually.

All of the logic is now within dataclass; all the Product subclass
does is maintain support for the deprecated constructor, and provides
the from_product_name method.
@wpt-pr-bot wpt-pr-bot added infra wptrunner The automated test runner, commonly called through ./wpt run labels Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

infra wptrunner The automated test runner, commonly called through ./wpt run

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants