def test_override_default_stdlib_dataclass() -> None:
    """https://github.com/pydantic/pydantic/issues/11816"""

    @dataclasses.dataclass
    class Test:
        value: int = 1

    @pydantic.dataclasses.dataclass
    class Sub(Test):
        value: int = 2

    assert Sub().value == 2
https://github.com/pydantic/pydantic/issues/11816
tests/test_dataclasses.py