Skip to content

conformance: dataclasses_inheritance.py - add missing # E #2017

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

KalininDL
Copy link

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.

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