Open
Description
Bug Report
Cf. python/typeshed#13645 and https://github.com/python/typeshed/actions/runs/13905970431/job/38908976156
When comparing dataclass with @dataclass(order=True)
using stubtest, stubtest complains that X._DT is not present at runtime
(where X
is the dataclass).
This is probably due to synthesizing a TypeVar:
mypy/mypy/plugins/dataclasses.py
Line 86 in 5c87e97
(Thanks, @AlexWaygood.)
Your Environment
- Mypy version used: 1.15.0
- Python version used: 3.12.9
Command run was:
/tmp/stubtest-1u57o6se/bin/pip install fpdf2[]==2.8.2 mypy==1.15.0 Pillow>=10.3.0 cryptography
MYPYPATH=stubs/fpdf2 /tmp/stubtest-1u57o6se/bin/python -m mypy.stubtest --custom-typeshed-dir . fpdf --allowlist stubs/fpdf2/@tests/stubtest_allowlist.txt