Skip to content

Add conformance tests for the 'match_args' parameter to dataclass. #2056

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 16, 2025

Conversation

rchen152
Copy link
Collaborator

The spec lists 'match_args' as a dataclass parameter that static type checkers must honor [1], so it would be good to have tests for it.

rchen152 and others added 3 commits July 21, 2025 15:23
The spec lists 'match_args' as a dataclass parameter that static
type checkers must honor, so it would be good to have tests for it.
@JelleZijlstra JelleZijlstra merged commit d2f9b08 into python:main Aug 16, 2025
4 checks passed
facebook-github-bot pushed a commit to facebook/pyrefly that referenced this pull request Aug 17, 2025
Summary:
Updated conformance tests to pull in a few significant PRs:
* python/typing#2067 (a fair number of small tweaks)
* python/typing#2056 (new test file for dataclasses match_args)
* python/typing#2068 (new test file for TypedDict extra items)

Reviewed By: samwgoldman

Differential Revision: D80424920

fbshipit-source-id: 3d8ac3e70aa86329f0d1adb1af2d2e0837bc5c4e
@rchen152 rchen152 deleted the dataclasses_match_args branch August 19, 2025 23:26
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.

2 participants