Skip to content

🐛 fix(api): restore plain tuple results - #365

Merged
gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/restore-public-tuples
Nov 12, 2026
Merged

gaborbernat merged 1 commit into
tox-dev:mainfrom
gaborbernat:fix/restore-public-tuples

Conversation

@gaborbernat

@gaborbernat gaborbernat commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

The simplint adoption changed Frontend.create_args_from_folder and Frontend.metadata_from_built from plain tuples to named tuple classes. Callers that inspect exact result types, representations, or annotations receive a different interface. This restores the earlier tuple results and the annotations on SubprocessFrontend.send_cmd and BackendFailed.__reduce__.

Narrow lint exceptions keep these public return types and annotations with the simplint hook enabled.

The FrontendArgs and BuiltMetadata exports added in #361 are removed. Callers using their named fields must unpack the returned tuples.

@gaborbernat gaborbernat added the bug Something isn't working label Nov 12, 2026
The simplint adoption changed two public tuple results into NamedTuple
instances and narrowed public annotations. Restore the original return
types and annotations for callers that inspect them.
@gaborbernat
gaborbernat force-pushed the fix/restore-public-tuples branch from 30e677c to 2e6e9b5 Compare November 12, 2026 01:27
@gaborbernat
gaborbernat merged commit 4887f09 into tox-dev:main Nov 12, 2026
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant