Skip to content

Conversation

@KalininDL
Copy link
Contributor

It seems that # E is missing in the snippet bellow

@dataclass
class DC5:
    # This should generate an error because a default value of
    # type list, dict, or set generate a runtime error.
    x: list[int] = []

Could you please take a look?

@KalininDL KalininDL changed the title dataclasses_inheritance.py - add missing # E conformance: dataclasses_inheritance.py - add missing # E May 28, 2025
@erictraut
Copy link
Collaborator

Thanks for the contribution. Yes, I agree this is missing an '# E'.

Please rerun the conformance tests to update the results. Also, update the notes accordingly for any type checkers that fail this test so the notes appear in the conformance test results.

@KalininDL KalininDL force-pushed the fix_dataclasses_inheritance branch 2 times, most recently from ebb8451 to 574e72f Compare June 5, 2025 08:18
@KalininDL KalininDL force-pushed the fix_dataclasses_inheritance branch from 574e72f to 5df300b Compare June 5, 2025 09:10
@@ -1,8 +1,9 @@
conformant = "Pass"
conformant = "Partial"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a "notes" section here with a one-line summary of the failure(s). These notes appear when hovering over the results in the conformance report.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aha, now I got how it works, thanks!

@@ -1,8 +1,9 @@
conformant = "Pass"
conformant = "Partial"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here — add a "notes" section and rerun the tests to produce an updated summary report.

@KalininDL KalininDL force-pushed the fix_dataclasses_inheritance branch from 5df300b to 5e8b4f9 Compare June 6, 2025 14:43
@erictraut erictraut merged commit 9e4ac47 into python:main Jun 6, 2025
4 checks passed
intellij-monorepo-bot pushed a commit to JetBrains/intellij-community that referenced this pull request Jun 9, 2025
…n/typing#2017

Add the test to `ignored.txt` as it passes now

GitOrigin-RevId: eeb3fb89e5717a91482dc496233c3e68f5c4b80c
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.

3 participants